Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Cookie data #229
base: stable
Are you sure you want to change the base?
Cookie data #229
Changes from all commits
3e2e59e
963c533
c22a7d1
7425ec5
80e89f0
c58e264
967555e
78f5cf5
3cdf46e
1c94a8c
440196c
1287f4c
3764e4b
312e11e
9078818
9c11bb4
ba4c754
9555243
ec8532b
884bbff
b6c85e7
15d1b13
75e8526
ff2a37e
8e6c677
f8250af
df75ce4
64cb140
b9bb269
65e2da8
0e8b732
bd80d49
cb35ab3
41ac282
7d1586f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cookie is always going to be null when you haven't decoded it yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what should i do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This depends on the protocol. How do we know if the client is going to send a cookie in this request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can understand something from the length of the incoming buffer, but I don't know if it's the right thing to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we just need a context-aware parser that can read whether cookie is expected. If we always send cookies for all clients, we should always read it. If we never send cookies, we should never read it. It doesn't seem that we require any guessing.