You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be better to replace TransportSender/TransportReceiver abstraction around AsyncRead/AsyncWrite to support other transports etc. The current abstraction is not great but does the job for now
Interesting. I know that web sockets have a special close frame, but I never understood why. IMO all transports should be prepared for an unexpected close, which is what reading 0 bytes (or None) indicates. What value might a special close frame add?
TransportReceiverT today declares this method:
But this doesn't permit the implementation to indicate a dropped connection. Can we change it to the following:
Then the caller should treat a
None
result the same way it would treat a closed transport.This helps toward #907.
The text was updated successfully, but these errors were encountered: