jrconlin/pushgo

sending ack to server without prior handshake results in broken pipe

Closed this issue · 1 comments

  1. python wsdump.py ws://localhost:8080/ws
  2. run this:
    {"messageType":"ack"}

actual:
2013/06/10 16:00:01 [3] worker: Socket received {"messageType": "ack"}
2013/06/10 16:00:01 [3] worker: Client Read buffer, map[messageType:ack]
2013/06/10 16:00:01 [1] worker: Undefined UAID for socket. Aborting.
2013/06/10 16:00:01 [3] server: Server Handling command {%!s(int=6) }

work around: if you send a 'hello' handshake first, the server does not break the socket

Fixed in 69a5ac5