It is not very safe to reuse sockets between the threads