-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
wrk improvements #174
wrk improvements #174
Conversation
return | ||
} | ||
var keepAlive = false | ||
|
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.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
where next != newLine | ||
&& !closed { | ||
var next: Byte? | ||
while next != newLine && !closed { |
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'm not sure I understand the difference here., am I missing something?
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.
Before, if the first byte(s) received were nil, it would assume end of line and return whatever it had. It looks like some requests (especially wrk
) start with an empty byte. So the empty byte came in, this skipped and returned an empty string, the request line got parsed as invalid, then it was all wonky after that.
Now it will only assumes the line is done when it gets a new line character, which seems to be more technically valid, and also totally fixed the InvalidComponents issue.
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.
@ketzusaka Here
|
# Conflicts: # Vapor.xcodeproj/project.pbxproj # Vapor.xcodeproj/project.xcworkspace/xcshareddata/Vapor.xcscmblueprint # Vapor.xcodeproj/xcshareddata/xcschemes/Vapor.xcscheme
No description provided.