]> git.kaiwu.me - haproxy.git/commit
[MAJOR] spec I/O: fix allocations of spec entries for an FD
authorWilly Tarreau <w@1wt.eu>
Fri, 31 Aug 2007 15:01:18 +0000 (17:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 31 Aug 2007 15:01:18 +0000 (17:01 +0200)
commitc8bd5c11a5ab7768ea6e6c9ccd960083c9964e29
treebbb2cdeb3e404fa50688ab62e78ed5a4da5ebf0b
parentc4db8a72fd9518a38e9134f5c9cd0abf024734ea
[MAJOR] spec I/O: fix allocations of spec entries for an FD

Under some circumstances, it was possible with speculative I/O to
reallocate multiple entries for the same FD if an fd_{set,clr,set}
or fd_{clr,set,clr} sequences were performed before a schedule.

Fix this by keeping a an allocation flag for each fd.
src/ev_sepoll.c