disable keep-alive and make timeout configurable