[BUG] corrected the speed / sec calculating
[BUG] OSX specific: handle send() non-blocking on Mac OS X (maybe other BSD?)