]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
messenger: introduce timeouts on pipes.
authorGreg Farnum <gregf@hq.newdream.net>
Fri, 15 Oct 2010 18:21:02 +0000 (11:21 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 15 Oct 2010 18:21:53 +0000 (11:21 -0700)
commit8528ebb0c6286eb6660773fcaf29d1cccd98d72c
treeac00748bcbb9e2aea4997f263729a84c62198e7d
parent6e1eeac3b33db5e2f71b51cf6b69cb15b931d393
messenger: introduce timeouts on pipes.

This will return read errors on a pipe if it gets no data
for the given period of time (default 15 minutes). In a stateful
session the Connection will hang around and the next write will
initiate standard reconnect, so things keep working but we don't
rack up hundreds of useless threads!
src/config.cc
src/config.h
src/msg/SimpleMessenger.cc
src/msg/SimpleMessenger.h
src/msg/tcp.cc
src/msg/tcp.h