Implemented adding parameters for AnyEvent::Handle to the establish m…#4
Implemented adding parameters for AnyEvent::Handle to the establish m…#4TheAthlete wants to merge 1 commit intodebug-ito:masterfrom
Conversation
|
Thanks for making the pull-request. I don't mind adding capability to customize the AnyEvent::Handle object, but that feature would be experimental forever. Changing configuration of the AnyEvent::Handle object changes its behavior drastically, and I cannot guarantee AnyEvent::WebSocket::Server still works correctly. In addition, some attributes (e.g. If you describe a little more detail on what you want to do, maybe we can come up with a more reliable way to achieve that. |
|
@debug-ito What we're trying to achieve here is to take the control over the situation when connection closes unexpectedly during websocket handshake. Without the patch, we had sporadic crashes inside the handshake code which we couldn't handle (I assume it happened when clients were closing the connection before handshake procedure was complete, although we didn't investigate it in deep). After the patch provided by @TheAthlete those crashes are gone, that's why I believe it's useful. Any advice on how to make it in a right way is appreciated! |
|
Thanks for explaining your problem. If something bad happens during the handshake process, it should be reported as error from the AnyEvent::CondVar returned by Did the CondVar throw any exception when |
Implemented adding parameters for AnyEvent::Handle to the establish method
This functionality is required to add various AnyEvent::Handler parameters and handlers, for example: