Show More
@@ -457,8 +457,12 b' class Client(HasTraits):' | |||||
457 | return s.connect(url) |
|
457 | return s.connect(url) | |
458 |
|
458 | |||
459 | self.session.send(self._query_socket, 'connection_request') |
|
459 | self.session.send(self._query_socket, 'connection_request') | |
460 | r,w,x = zmq.select([self._query_socket],[],[], timeout) |
|
460 | # use Poller because zmq.select has wrong units in pyzmq 2.1.7 | |
461 | if not r: |
|
461 | poller = zmq.Poller() | |
|
462 | poller.register(self._query_socket, zmq.POLLIN) | |||
|
463 | # poll expects milliseconds, timeout is seconds | |||
|
464 | evts = poller.poll(timeout*1000) | |||
|
465 | if not evts: | |||
462 | raise error.TimeoutError("Hub connection request timed out") |
|
466 | raise error.TimeoutError("Hub connection request timed out") | |
463 | idents,msg = self.session.recv(self._query_socket,mode=0) |
|
467 | idents,msg = self.session.recv(self._query_socket,mode=0) | |
464 | if self.debug: |
|
468 | if self.debug: |
General Comments 0
You need to be logged in to leave comments.
Login now