jrconlin/pushgo

register without handshake results in 2 duplicate error responses from server

edwindotcom opened this issue · 0 comments

  1. run server locally
  2. run this: python wsdump.py ws://localhost:8080/ws
  3. enter this and hit return
    {"messageType": "register", "channelID":"no_handshake"}
    < {"error":"memcache: unexpected response line from "set": "ERROR\r\n"","messageType":"register","status":500}
    < {"error":"memcache: unexpected response line from "set": "ERROR\r\n"","messageType":"register","status":500}

acutal: there are two error messages returned
expected. There should only be 1 error response

This is what a good sequence looks like:

{"messageType": "hello"}
< {"messageType":"hello","status":200,"uaid":"508c336240772bcb8013ccf913dd4f6b"}
{"messageType": "register", "channelID":"good_handshake"}
< {"messageType":"register","pushEndpoint":"http://localhost:8080/update/508c336240772bcb8013ccf913dd4f6b.good_handshake","status":200}