]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] split stream_sock_write() into callback and core functions
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Jan 2009 14:30:37 +0000 (15:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Jan 2009 14:48:52 +0000 (15:48 +0100)
commit0c2fc1f39df79da92b9aaccca513a0c184af69a4
treed3c761a3676398268962d22be5815557167180e1
parentac128fef7379cd53fdda9e80f94911fd873d2a08
[MEDIUM] split stream_sock_write() into callback and core functions

stream_sock_write() has been split in two parts :
  - the poll callback, intented to be called when an I/O event has
    been detected
  - the write() core function, which ought to be usable from various
    other places, possibly not meant to wake the task up.

The code has also been slightly cleaned up in the process. It's more
readable now.
src/stream_sock.c