-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 #2559: order of handlers: protocol first, user second #2581
Conversation
This breaks those examples where we want to process incoming messages ourselves. The protocol handler has a higher priority and deletes the data from the buffer before we get a chance to even see it. For example:
No output ! Lines 976 to 977 in 00ea383
Lines 1036 to 1039 in 00ea383
|
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.
Changing the order of handlers can have many unexpected and undesired effects. We'll have to probably re-write a lot of stuff.
I'd try to prevent sending EV_CLOSE when there is outstanding data, fire an EV_READ that will in this case end up being an EV_HTTP_MSG and then fire the close event. That would leave things as they are with no processing reversal.
Please see other comments
file-upload-single-post doesn't work, either, it doesn't even serve the info page.
Fixed the example. I believe that the order of handler "proto first, user second" is semantically correct. |
file-upload-single-post doesn't work, either, it doesn't even serve the info page. |
Doh... File uploads is kind of basics! We must test those automatically. |
The rest of the examples tested OK. |
Fixed! The idea is to use |
Having a separate handler because we are bypassing the default handler to shape buffering in embedded is understandable |
No description provided.