burnash/gspread — Issue #12: Script Hangs
Author: ac001
Created: 2012-01-04 07:29:43+00:00
State: open

Got a situation where sometimes my script hangs.. no timeout no nothing..

Don't know if there is anything that can be done to "help" this situation

This is the backtrace after around 15 mins.

File "./alcontrol.py", line 150, in
sheet.update_cell(curr_row, c, data[ki])
File "/home/geo2lab/geo2pylons/shell/gspread/models.py", line 343, in update_cell
self._cell_addr(row, col))
File "/home/geo2lab/geo2pylons/shell/gspread/client.py", line 224, in get_cells_cell_id_feed
r = self.session.get(url)
File "/home/geo2lab/geo2pylons/shell/gspread/httpsession.py", line 62, in get
return self.request('get', url, **kwargs)
File "/home/geo2lab/geo2pylons/shell/gspread/httpsession.py", line 57, in request
return request.urlopen(req)
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1193, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1154, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 955, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 989, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 951, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 811, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 773, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1158, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File "/usr/lib/python2.7/ssl.py", line 344, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python2.7/ssl.py", line 121, in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 283, in do_handshake
self._sslobj.do_handshake()
KeyboardInterrupt