Shivaram Lingamneni
c78253fd93
more memory-efficient implementation of line reading
4 gadus atpakaļ
Shivaram Lingamneni
aad39024b9
mitigate a potential DoS against websocket listeners
Websocket listeners would process an arbitrary number of invalid
(non-text or blank) messages without throttling. This imposes fakelag
on such messages by treating them as blank lines.
4 gadus atpakaļ
Shivaram Lingamneni
15c54e80de
clean up some error handling
4 gadus atpakaļ
Shivaram Lingamneni
6a2fba9812
make it easier to patch out the maximum line length
4 gadus atpakaļ
Shivaram Lingamneni
8cadc7340a
don't trim line endings in IRCStreamConn
Doesn't help if the line ends with regular \n only,
and the parser has to account for \r and \n anyway
4 gadus atpakaļ
Shivaram Lingamneni
a4f9e08a85
fix #1151
4 gadus atpakaļ
Shivaram Lingamneni
c92192ef48
review fixes; add submatch support to glob
4 gadus atpakaļ
Shivaram Lingamneni
3dc5c8de78
more work on websocket support
4 gadus atpakaļ