ecdavis / pants

A lightweight framework for writing asynchronous network applications in Python.
http://pantspowered.org/
Apache License 2.0
167 stars 9 forks source link

Modified Stream for more intelligent handling of buffer overflow, giving... #32

Closed stendec closed 12 years ago

stendec commented 12 years ago

... the application logic a chance to empty the buffer before just giving up, and setting the maximum buffer size to read_delimiter if read_delimiter is larger than buffer_size, a new property used for setting the maximum buffer size.

(Also, I wanted to try making a pull request.)