Open eventlistener opened 12 years ago
@eventlistener The server crash issue should no longer be a problem.
Can you provide a django sample app that shows this problem with HttpOnly cookies. The websocket protocol does accept them so if you can provide us a broken example we will fix it.
@eventlistener I meant in the form of a pull request to /examples if that wasn't clear. We use those as our testbed.
@eventlistener Ping.
I'm trying to use gevent-socketio with Django. When 'flashsocket' transport is used, all HttpOnly cookies are excluded from request cookies. Since Django sessions system stores an HttpOnly cookie
sessionid
, user is never authenticated insiderecv_connect
handler. Also some browsers (at least IE8) cause exceptions when the page is refreshing. The first is raised immediately after query(Here's another thing that makes me confused: the server fails silently with 500 status every time the page is refreshing, regardless of which transport is used. Is that normal?) Exception is:
The second is raised after page loaded and
recv_connect
occured:Server code is pretty simple:
The project runs on plain
SocketIOServer
.Versions of packages I use: gevent – 0.13.7 gevent-websocket – 0.3.6 gevent-socketio – 0.3.5-rc2 socket.io-client – 0.9.9, also tried 0.9.1-1