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

Fix crash when using sessionless requests over WebSockets. #2107

Merged
merged 1 commit into from
Sep 26, 2014

Conversation

leedm777
Copy link
Contributor

When disabling sessions for individual requests, it's done by deleting
the session field from the request. (See
#841).

Unfortunately, the REST-over-WebSocket code assumed that the session was
always there. This patch checks for the existence of req.session before
calling req.session.save.

When disabling sessions for individual requests, it's done by deleting
the session field from the request. (See
balderdashy#841).

Unfortunately, the REST-over-WebSocket code assumed that the session was
always there. This patch checks for the existence of req.session before
calling req.session.save.
@leedm777
Copy link
Contributor Author

leedm777 commented Sep 9, 2014

bump

@sgress454
Copy link
Member

Hi @leedm777, where in #841 does it suggest deleting the session field from the request? You can just set it to null.

@leedm777
Copy link
Contributor Author

@sgress454 That detail doesn't really matter. You get the same crash, whether you delete or set it to null.

@sgress454
Copy link
Member

Gotcha, makes sense now that I look at it. Thanks.

sgress454 added a commit that referenced this pull request Sep 26, 2014
Fix crash when using sessionless requests over WebSockets.
@sgress454 sgress454 merged commit 9fe4e87 into balderdashy:master Sep 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants