disabled non-blocking socket, because its not what you want!

Non-blocking sockets are only usefull if you want to have two sockets in one thread. In this case you loose data (cause there is no select() nor multiple fwrites if not all bytes have been sent.