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

Support requests of any size #19

Closed
steveklabnik opened this issue Oct 15, 2017 · 1 comment
Closed

Support requests of any size #19

steveklabnik opened this issue Oct 15, 2017 · 1 comment

Comments

@steveklabnik
Copy link
Owner

steveklabnik commented Oct 15, 2017

Right now, we only support a request of 512 bytes:

let mut buffer = [0; 512];

A real server should be able to handle larger requests.

gmbeard pushed a commit to gmbeard/simple-server that referenced this issue Dec 5, 2017
Requests are now read from a `Vec<u8>` buffer and will allow reading
request object beyond 512 bytes. The parser still uses a fixed header
buffer but I've increased its length to 32. Fixes issue steveklabnik#19
steveklabnik pushed a commit that referenced this issue Mar 18, 2018
Requests are now read from a `Vec<u8>` buffer and will allow reading
request object beyond 512 bytes. The parser still uses a fixed header
buffer but I've increased its length to 32. Fixes issue #19
@steveklabnik
Copy link
Owner Author

This has been fixed thanks to @gmbeard !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant