Disable Nagle algorithm
Fix trace with extra newline
Fix bad calculation of time to sleep waiting for next event
Fix est compiler warning