Repository navigation
make close-handshake more explicit - #50
Conversation
7ec8b61 to
75f4f02
Compare
|
@jeamland Again, I think this is reasonable, but I'd like you to take a look at it as you're more familiar with websockets than I. |
|
It's not really clear to me what this change is trying to do -- can you elaborate? |
|
Sorry, this PR is a few months old - this is what I remember: When working on wsproto support in mitmproxy (mitmproxy/mitmproxy#2545) we experienced odd behaviour during the closing handshake, i.e., the final "CLOSE" frame was not sent/received. This PR tries to make the closing-handshake state change more explicit: |
75f4f02 to
043a6e1
Compare
|
@njsmith care to take another look? |
|
This PR directly addresses the point of confusion that I raised in #64. It's a small patch that makes the closing behavior more intuitive. I am working on a Trio WebSocket library, and this behavior is more convenient and simplifies my implementation. I'm not a member of python-hyper, but as an unofficial reviewer I give this patch two thumbs up. 👍 👍 |
|
Please merge this PR. It makes sense (eminently so) and simplifies using the library, as it allows me to separate "normal closing" and "abnormal connection loss" handling much more cleanly. |
|
@mehaase @smurfix As you've no doubt noticed, wsproto is rather unmaintained right now... would either or both of you be interested in becoming maintainers? (I'm not sure whether I have the authority to just grant that unilaterally, but I'm pretty sure @jeamland and @Lukasa won't have any objections.) |
|
@njsmith I'm one of the @mitmproxy devs and we rely on wsproto and hyper-h2 for our protocol stack. So I'm pretty interested in keeping this project alive! I'm already part of the |
|
I am happy to join the project. I can help out as a reviewer since that seems to be a bottleneck. |
No description provided.