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

Bugfix: WebSocketConfig.withForwardCloseFrames does not forward Close frames #2375 #2395

Merged
merged 10 commits into from
Oct 8, 2023

Conversation

webberaj81
Copy link
Contributor

This fixes the issue of WebSocketConfig.forwardCloseFrames() being inverted in that it required to be set to false to forward close frames to the client, and true (default value) to not forward close frames to the client.

Also included is a unit test to verify this functionality

NOTE: This is a (necessary) functionality change that may break some existing WebSocket code.

/claim #2375

@CLAassistant
Copy link

CLAassistant commented Aug 21, 2023

CLA assistant check
All committers have signed the CLA.

…rward Close frames

fix typos, clarify descriptor

add WebSocketConfig unit test for forwardCloseFrames
@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (de31152) 64.58% compared to head (4db602e) 64.64%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2395      +/-   ##
==========================================
+ Coverage   64.58%   64.64%   +0.05%     
==========================================
  Files         135      135              
  Lines        7153     7153              
  Branches     1207     1209       +2     
==========================================
+ Hits         4620     4624       +4     
+ Misses       2533     2529       -4     
Files Coverage Δ
...http/src/main/scala/zio/http/WebSocketConfig.scala 22.22% <100.00%> (+11.11%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@webberaj81
Copy link
Contributor Author

/claim #2375

@adamgfraser adamgfraser merged commit d34fed1 into zio:main Oct 8, 2023
13 checks passed
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.

5 participants