The tcp_table client timeout is not configurable (it also is not 60s). Closing the socket after each query is wrong.
First, you need to set the SO_REUSEADDR socket option on the LISTEN socket. Second, before restarting your server, you need to terminate ALL tcp table server processes. Wietse