Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected disconnections - How to determine who terminated? #17

Open
aychedee opened this issue May 15, 2012 · 4 comments
Open

Unexpected disconnections - How to determine who terminated? #17

aychedee opened this issue May 15, 2012 · 4 comments

Comments

@aychedee
Copy link

Hi again,

We have a large number of unexpected disconnections. The on_close method only receives the session. Is there any way of using the on_close method to figure out who initiated the close? Whether the client or server.

Cheers

aychedee

@mrjoes
Copy link
Owner

mrjoes commented May 15, 2012

Right now there's no way to figure it out.

I will think how to add this without changing existing api (thinking of self.session.close_reason).

@aychedee
Copy link
Author

Thanks Serge!

@mrjoes mrjoes reopened this May 16, 2012
@mrjoes
Copy link
Owner

mrjoes commented May 16, 2012

I will keep this open, so I won't forget about it.

@mcilfone
Copy link

Hi Mr Joes,
I'm dealing with an unexpected SockJS disconnection.
There is no call to my connection.on_close function.
And there is no reason, even after calling the session get_on_close_reason method.
How can I deal with it?

I'm using sockjs-tornado==1.0.1 with tornado==4.0.2 and sockjs.js==0.3.4

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants