Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add header listings and option to not buffer entire post data and var…
…ious bug fixes In the past, I would do .buffer('data', 'content_length') to make protoparse buffer up the entire post data before emitting a request. Clients could abuse this by sending huge post data. I now allow a parameter to SCGIServer to stop this behavior, and just pass the socket and the buffer list. Note that the bufferlist will continue to suck up data until you tell it not to (by socket.removeAllListeners('data')). This can be useful is you want to wait until emitting data, for example if you want to give 'downstream' code a chance to register its handlers
- Loading branch information
Showing
2 changed files
with
61 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters