Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket: unhandle rejection #6418

Merged
merged 4 commits into from
Feb 19, 2020
Merged

Websocket: unhandle rejection #6418

merged 4 commits into from
Feb 19, 2020

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Feb 18, 2020

Closes: #6413, #6173
Prevent crashing on websocket error.

Invalid WebSocket frame: invalid payload length 126

Bonus points to anybody who can post a specific payload that the client sends that returns an error.

cc @aeolus @JeffGuKang

Closes: #6413, #6173
Prevent crashing on websocket error.

Bonus points to anybody who can post a specific payload that the client sends that returns an error.
@codecov
Copy link

codecov bot commented Feb 18, 2020

Codecov Report

Merging #6418 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6418      +/-   ##
==========================================
- Coverage   93.94%   93.91%   -0.04%     
==========================================
  Files         169      169              
  Lines       11734    11737       +3     
==========================================
- Hits        11024    11023       -1     
- Misses        710      714       +4     
Impacted Files Coverage Δ
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 92.79% <0.00%> (-0.68%) ⬇️
src/RestWrite.js 93.64% <0.00%> (-0.17%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84b0878...3ef5ffb. Read the comment docs.

Copy link
Member

@davimacedo davimacedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@davimacedo davimacedo merged commit ca1ae33 into master Feb 19, 2020
@dplewis dplewis deleted the websocket-error branch March 2, 2020 21:53
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
* Websocket: unhandle rejection

Closes: parse-community#6413, parse-community#6173
Prevent crashing on websocket error.

Bonus points to anybody who can post a specific payload that the client sends that returns an error.

* log the socket

* fix tests

* fix payload reference link
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.

[LiveQuery]RangeError: Invalid WebSocket frame: invalid payload length 126
2 participants