You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 inside recv_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:
@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.
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
The text was updated successfully, but these errors were encountered: