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

wrk improvements #174

Merged
merged 14 commits into from
Apr 9, 2016
Merged

wrk improvements #174

merged 14 commits into from
Apr 9, 2016

Conversation

tanner0101
Copy link
Member

No description provided.

return
}
var keepAlive = false

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 {
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ketzusaka Here

@loganwright
Copy link
Member

:shipit:

tanner0101 and others added 6 commits April 8, 2016 22:30
# Conflicts:
#	Vapor.xcodeproj/project.pbxproj
#	Vapor.xcodeproj/project.xcworkspace/xcshareddata/Vapor.xcscmblueprint
#	Vapor.xcodeproj/xcshareddata/xcschemes/Vapor.xcscheme
@tanner0101 tanner0101 merged commit 58ad22c into master Apr 9, 2016
@tanner0101 tanner0101 deleted the travis-wrk branch April 9, 2016 03:15
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

Successfully merging this pull request may close these issues.

None yet

3 participants