]> git.ipfire.org Git - thirdparty/haproxy.git/commit
* fixed a nasty bug in epoll_loop() and poll_loop() by which an EPOLL_HUP event
authorWilly TARREAU <willy@pcw.(none)>
Sun, 8 Jan 2006 00:24:12 +0000 (01:24 +0100)
committerWilly TARREAU <willy@pcw.(none)>
Sun, 8 Jan 2006 00:24:12 +0000 (01:24 +0100)
commite78ae269fe90fcadd921a7eec1b2b181ea4f6181
tree99ad149745a61ac8ff3615083fba52afbcac116f
parent11a4606c8be2f328c94a4b3d2bee43a25ea087ca
* fixed a nasty bug in epoll_loop() and poll_loop() by which an EPOLL_HUP event
  could trigger both a read and a write calls, thus sometimes inducing headers
  being directly sent from srv to cli without modification, and leading further
  modification to crash the process by memory corruption, because
  rep.data+rep.l<rep.h so the memmove() length argument is negative. Only
  observed with epoll() and never poll(), though this one should have been
  affected too. Now, only call functions which have been allowed to.
haproxy.c