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

Add timeout on secure websocket receive method #137

Merged
merged 4 commits into from
Dec 3, 2021
Merged

Add timeout on secure websocket receive method #137

merged 4 commits into from
Dec 3, 2021

Conversation

1c3t3a
Copy link
Owner

@1c3t3a 1c3t3a commented Dec 2, 2021

This PR closes #133 by adding a timeout on the Websocket's receive method. This way the lock on the client isn't held until the next message is received.

@1c3t3a 1c3t3a requested a review from Colin1860 December 2, 2021 10:45
@1c3t3a
Copy link
Owner Author

1c3t3a commented Dec 2, 2021

I can't currently add you as a reviewer @nshaaban-cPacket, but I've send you an invite to change this. If you've got time I would feel safer if you would review the PR, otherwise I would just trust mine and Aarons tests.

@codecov
Copy link

codecov bot commented Dec 2, 2021

Codecov Report

Merging #137 (b264dc3) into main (c49fe9e) will decrease coverage by 0.29%.
The diff coverage is 53.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #137      +/-   ##
==========================================
- Coverage   87.87%   87.58%   -0.30%     
==========================================
  Files          20       20              
  Lines        1633     1643      +10     
==========================================
+ Hits         1435     1439       +4     
- Misses        198      204       +6     
Impacted Files Coverage Δ
engineio/src/transports/websocket_secure.rs 82.82% <53.84%> (-4.82%) ⬇️

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 c49fe9e...b264dc3. Read the comment docs.

Copy link
Collaborator

@Colin1860 Colin1860 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@ctrlaltf24 ctrlaltf24 left a comment

Choose a reason for hiding this comment

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

LGTM

engineio/src/transports/websocket_secure.rs Outdated Show resolved Hide resolved
@1c3t3a 1c3t3a merged commit 19fddbc into main Dec 3, 2021
@1c3t3a 1c3t3a deleted the issue-133 branch December 3, 2021 09:01
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.

Performance degradation using SSL
3 participants