friends-of-reactphp / stomp

STOMP bindings for ReactPHP.
MIT License
115 stars 42 forks source link

Handle bad connections #17

Closed romainneutron closed 11 years ago

romainneutron commented 11 years ago
romainneutron commented 11 years ago

FYI and to add docs within this PR, here is what the documentation says about connections :

The server can reject any connection attempt. The server SHOULD respond back with an ERROR frame listing why the connection was rejected and then close the connection. STOMP servers MUST support clients which rapidly connect and disconnect. This implies a server will likely only allow closed connections to linger for short time before the connection is reset. This means that a client may not receive the ERROR frame before the socket is reset.

igorw commented 11 years ago

Thanks, merged with minor adjustments.