Double buffer size for incomming data, close sockets when no data sent, use TCP_NODELAY
Daemonization