summaryrefslogtreecommitdiff
path: root/lib/server/TcpNice.h
Commit message (Collapse)AuthorAge
* Make Protocol take control of the socket object passed in.Chris Wilson2014-03-01
| | | | | | | | | | | | | We pass a std::auto_ptr<SocketStream> to every Protocol subclass when we construct it, and it takes control of this object. This reduces the risk of: * accidentally reusing the same SocketStream for multiple Protocols (it happened to me in testbackupstore); * holding onto a reference to the SocketStream; * allowing a locally-scoped SocketStream to go out of scope and be released while still being referenced by a live Protocol.
* Add experimental "TCP Nice" mode, disabled by default.Chris Wilson2012-02-12