Working on timeout handling - resetting the send buffer