Skip to content

Commit

Permalink
Setting timeout for sphinxapi
Browse files Browse the repository at this point in the history
  • Loading branch information
davedash committed Mar 23, 2010
1 parent de9b8c5 commit 118956c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/search/sphinxapi.py
Expand Up @@ -195,6 +195,7 @@ def _Connect (self):
addr = ( self._host, self._port )
desc = '%s;%s' % addr
sock = socket.socket ( af, socket.SOCK_STREAM )
sock.settimeout(5)
sock.connect ( addr )
except socket.error, msg:
if sock:
Expand Down

0 comments on commit 118956c

Please sign in to comment.