Skip to content

Handle incomplete frame to prevent WebsocketClient ending in an endle… - #1189

Merged
slaff merged 1 commit into
SmingHub:developfrom
jochenjagers:fix/crashOnIncompleteWebsocketFrame
Jul 21, 2017
Merged

Handle incomplete frame to prevent WebsocketClient ending in an endle…#1189
slaff merged 1 commit into
SmingHub:developfrom
jochenjagers:fix/crashOnIncompleteWebsocketFrame

Conversation

@jochenjagers

Copy link
Copy Markdown
Contributor

…ss loop

When a WebsocketClient receives an incomplete frame it hangs in an endless loop until the watchdog resets the system.
Marking the frame as incomplete and returning false resolves this issue.
But the data received with this frame is lost. I will create another pull-request for temoprary saving the data and combining them with the next frame(s) for correct evaluation

@slaff

slaff commented Jul 14, 2017

Copy link
Copy Markdown
Contributor

@avr39-ripe Can you look at that PR too?

@slaff slaff added this to the 3.3.0 milestone Jul 21, 2017
@slaff slaff removed the 3 - Review label Jul 21, 2017
@slaff
slaff merged commit f4c2d01 into SmingHub:develop Jul 21, 2017
johndoe8967 added a commit to johndoe8967/Sming that referenced this pull request Jul 21, 2017
* commit 'f4c2d01834a49b10ae0d374d7feeeab38f197d95':
  Handle incomplete frame to prevent WebsocketClient ending in an endless loop (SmingHub#1189)
  Fixes for styling issues reported by Codacy (SmingHub#1196)
  Feature/httpserver etag caching (SmingHub#1194)
  HttpServer tuning to allow serving of more requests. (SmingHub#1187)
  decode-stacktrace.py: Added python3 compatability. (SmingHub#1190)
  Release Candidate 1 for version 3.3.0. (SmingHub#1185)
  Station::waitConnection method was deprecated and is now removed. (SmingHub#1171)
  Adding fixes for issues reported by Vera++ and CppCheck. (SmingHub#1178)
  Changes related to POST parameter unescaping. (SmingHub#1177)
johndoe8967 added a commit to johndoe8967/Sming that referenced this pull request Jul 28, 2017
* commit '93340e19a1e1e68885a36976113bc400eb2be985': (35 commits)
  Preparation for the final 3.3.0 release. (SmingHub#1202)
  Small fixes before the final 3.3.0 (SmingHub#1203)
  Updated the third-party modules.
  Added example demonstrating Js and CSS combining ... (SmingHub#1200)
  Fixed WebSocket sample HTML page (SmingHub#1201)
  Feature/auto deployment on release (SmingHub#1198)
  Handle incomplete frame to prevent WebsocketClient ending in an endless loop (SmingHub#1189)
  Fixes for styling issues reported by Codacy (SmingHub#1196)
  Feature/httpserver etag caching (SmingHub#1194)
  HttpServer tuning to allow serving of more requests. (SmingHub#1187)
  decode-stacktrace.py: Added python3 compatability. (SmingHub#1190)
  Release Candidate 1 for version 3.3.0. (SmingHub#1185)
  Station::waitConnection method was deprecated and is now removed. (SmingHub#1171)
  Adding fixes for issues reported by Vera++ and CppCheck. (SmingHub#1178)
  Changes related to POST parameter unescaping. (SmingHub#1177)
  Small fixes to comparison and memory related issues. (SmingHub#1172)
  Reset response and request data after completion.
  Custom PWM is enabled by default. (SmingHub#1164)
  TemplateStream: the total length should be calculated from the browser. HttpServer: The default keepalive time is set to 0.
  HttpClient: memory usage fixes. (SmingHub#1161)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants