]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] make stream sockets aware of the stream interface
authorWilly Tarreau <w@1wt.eu>
Sat, 30 Aug 2008 01:17:31 +0000 (03:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Nov 2008 09:19:08 +0000 (10:19 +0100)
commite5ed4067159daf24e50019061dd81c68f9025a37
tree0420280f76087d4dc9559457dcc5a56288e16048
parenteabf313df267621636f2460ab0e1da814c5db3a1
[MAJOR] make stream sockets aware of the stream interface

As of now, a stream socket does not directly wake up the task
but it does contact the stream interface which itself knows the
task. This allows us to perform a few cleanups upon errors and
shutdowns, which reduces the number of calls to data_update()
from 8 per session to 2 per session, and make all the functions
called in the process_session() loop completely swappable.

Some improvements are required. We need to provide a shutw()
function on stream interfaces so that one side which closes
its read part on an empty buffer can propagate the close to
the remote side.
include/proto/stream_sock.h
include/types/stream_interface.h
src/backend.c
src/client.c
src/proto_http.c
src/stream_sock.c