buffer.c


Log

Author Commit Date CI Message
Nicholas Marriott b04cc60f 2009-11-23T12:55:50 Backport evbuffer_readln(). This is necessary because it is not actually possible to use evbuffer_readline() safely: it will treat "A\r\n" as 'A' EOL if it reads it all at once, and as 'A' EOL EOL if there is a delay between reading the \r and the \n. Nicholas Marriott's comments on this patch: Gilles is too busy so I've had a go at this, please see the diff below. Rather than try to backport directly from 2.0 where the evbuffer code is quite different, I've backported the _readln function from when it was initially added in buffer.c r550. I can't see any relevant bug fixes after this point so the function is pretty much just copied in directly from that revision.
Niels Provos c5a0f56c 2009-09-24T22:21:09 from trunk: Do not drop data from evbuffer when out of memory; reported by Jacek Masiulaniec svn:r1437
Nick Mathewson 81765181 2009-09-11T18:55:06 Backport: do not believe negative result from FIONREAD. svn:r1429
Nick Mathewson 5d639d6c 2009-05-15T01:14:08 Fix win32 compilation warnings in 1.4. svn:r1287
Niels Provos 130a8a13 2008-06-28T01:47:01 switch all uses of [v]snprintf to evutil svn:r889
Niels Provos 6b4342db 2007-11-12T02:37:25 copy trunk to 1.4 svn:r512