50 sec send timeout, force activate keepalive, reworked websocket api to make it unified and allow named and unnamed parameters, reload on content.json fileWrite

This commit is contained in:
HelloZeroNet 2015-01-27 22:37:13 +01:00
parent ac211229a7
commit 655c104130
6 changed files with 78 additions and 60 deletions

View file

@ -158,6 +158,7 @@ class FileServer:
socket = self.context.socket(zmq.REP)
self.socket = socket
self.socket.setsockopt(zmq.RCVTIMEO, 5000) # Wait for data receive
self.socket.setsockopt(zmq.SNDTIMEO, 50000) # Wait for data send
self.log.info("Binding to tcp://%s:%s" % (self.ip, self.port))
try:
self.socket.bind('tcp://%s:%s' % (self.ip, self.port))