I don't see how to specify how long server should wait to read the message from client's socket. Not sure if this is possible.