]> git.ipfire.org Git - thirdparty/squid.git/commit - src/servers/Server.cc
Refactor ClientSocketContext write(2) using Server:: write methods
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Dec 2015 18:47:25 +0000 (10:47 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Dec 2015 18:47:25 +0000 (10:47 -0800)
commit21cd322727eaea02c573b2f5727e2e6ee6aba614
treebfa5c3d9aff5aea4cda12e77ce73c33cbfb4b2a8
parentd1d72d438501b135b7443bffa41fcb432dd2132b
Refactor ClientSocketContext write(2) using Server:: write methods

Writing to the client connection is scoped as an action for class Server
and its child classes. There is no need for ClientSocketContext to be
providing the callback handlers and performing I/O error handling.

With Server providing the current write handler we can move from
CBDATA callbacks to AsyncCall. Initial testing indicates this has some
minor performance benefit.
src/client_side.cc
src/client_side.h
src/servers/Http1Server.cc
src/servers/Server.cc
src/servers/Server.h
src/tests/stub_client_side.cc