]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] stream interface: add the ->shutw method as well as in and out buffers
authorWilly Tarreau <w@1wt.eu>
Sat, 30 Aug 2008 02:58:38 +0000 (04:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Nov 2008 09:19:08 +0000 (10:19 +0100)
commit48adac5db90a10c18e0ef46a65f4d8e422452cd1
tree7ecb6cdf051f7fd89e1c00bc623f6f98881d7f03
parente5ed4067159daf24e50019061dd81c68f9025a37
[MEDIUM] stream interface: add the ->shutw method as well as in and out buffers

Those entries were really needed for cleaner and better code. Using them
has permitted to automatically close a file descriptor during a shut write,
reducing by 20% the number of calls to process_session() and derived
functions.

Process_session() does not need to know the file descriptor anymore, though
it still remains very complicated due to the special case for the connect
mode.
include/proto/stream_sock.h
include/types/stream_interface.h
src/client.c
src/proto_http.c
src/stream_sock.c