correctly check for hangup during reserve
commitc2ee0f36f070b5fa1fbf31f81617a384d167c742
authorKeith Rarick <kr@xph.us>
Thu, 18 Oct 2012 09:42:01 +0000 (18 02:42 -0700)
committerKeith Rarick <kr@xph.us>
Fri, 19 Oct 2012 07:41:52 +0000 (19 00:41 -0700)
treee4978ef2ee48f303f5eeb0908a44db406a2e13f4
parentbf4dd7a6a1691b411f57f9951a0fbdfc28dcef2a
correctly check for hangup during reserve

Revert a9d436718ad9d8c60a250dd0269feac5f1287a52.

Instead of closing the connection immediately when the client
hangs up, merely cancel any pending reserve command. We still
process any other commands that are available so that a client
can read responses if the connection is only half closed.

fixes #144
darwin.c
dat.h
doc/protocol.md
doc/protocol.txt
linux.c
prot.c