]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream_interface: pass connection instead of fd in sock_ops
authorWilly Tarreau <wtarreau@exceliance.fr>
Mon, 23 Jul 2012 16:53:03 +0000 (18:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Sep 2012 19:53:08 +0000 (21:53 +0200)
commit239d7189fc525c2119b021b8719baed98087ea62
tree21a7e22a889deec935160c4bcf7b8c3396c630a7
parentfd31e53139fa8d55c68ecf6f5a82443e8715f354
MEDIUM: stream_interface: pass connection instead of fd in sock_ops

The sock_ops I/O callbacks made use of an FD till now. This has become
inappropriate and the struct connection is much more useful. It also
fixes the race condition introduced by previous change.
include/proto/proto_tcp.h
include/types/stream_interface.h
src/connection.c
src/proto_tcp.c
src/sock_raw.c