fixed error when sending more data than can be fit in one socket package
fast, but not very nice fix when socket send returns an eagain. the better fix would be to introduce a flag in the connection with "try again" and check for retries in the next update call.