]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] remove stream_sock_update_data()
authorWilly Tarreau <w@1wt.eu>
Sun, 23 Nov 2008 18:31:35 +0000 (19:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Nov 2008 18:31:35 +0000 (19:31 +0100)
commit0a5d5ddeb98f37149c04e6f729f0320b9a15957c
treef5cfd17b0979b655ba7484306e6419acfc72c581
parent74ab2ac7b0aaf7f96afd063c6e4f8a2f3653155b
[MEDIUM] remove stream_sock_update_data()

Two new functions are used instead : buffer_check_{shutr,shutw}.
It is indeed more adequate to check for new closures only when the
buffer reports them.

Several remaining unclosed connections were detected after a test,
even before this patch, so a bug remains. To reproduce, try the
following during 30 seconds :

  inject30l4 -n 20000 -l -t 1000 -P 10 -o 4 -u 100 -s 100 -G 127.0.0.1:8000/
include/proto/buffers.h
include/proto/stream_sock.h
include/types/buffers.h
include/types/stream_interface.h
src/proto_http.c
src/stream_sock.c