Fix bugs with sending EOF (#18)

This is a bug fix for EOF processing.  There is still a minor issue
with updating a field in TOT.  I'm not certain why, but valgrind
indicates that there is a bad write involved if there are more than
20 requests in the transfer.