Skip to content

Instantly share code, notes, and snippets.

@caseycrites
Created April 8, 2011 21:16
Show Gist options
  • Select an option

  • Save caseycrites/910755 to your computer and use it in GitHub Desktop.

Select an option

Save caseycrites/910755 to your computer and use it in GitHub Desktop.
Second simultaneous read on fileno 10 detected. Unless you really know what you're doing, make sure that only one greenthread can read any particular socket. Consider using a pools.Pool. If you do know what you're doing and want to disable this error, call eventlet.debug.hub_multiple_reader_prevention(False)
Traceback (most recent call last):
File "nash.py", line 87, in load_services_rows
return client.set_billing_service_count(*row)
File "/Users/caseycrites/.virtualenvs/nash/lib/python2.6/site-packages/simplegeo_internal/__init__.py", line 70, in set_billing_service_count
return self._set_stat('BillingServiceHourCounter', user, service, method, value, timestamp)
File "/Users/caseycrites/.virtualenvs/nash/lib/python2.6/site-packages/simplegeo_internal/__init__.py", line 76, in _set_stat
data=json.dumps(data))[1])
File "/Users/caseycrites/.virtualenvs/nash/lib/python2.6/site-packages/simplegeo/__init__.py", line 129, in _request
self.headers, content = self.http.request(endpoint, method, body=body, headers=headers)
File "/Users/caseycrites/.virtualenvs/nash/lib/python2.6/site-packages/httplib2/__init__.py", line 1129, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/Users/caseycrites/.virtualenvs/nash/lib/python2.6/site-packages/httplib2/__init__.py", line 901, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/Users/caseycrites/.virtualenvs/nash/lib/python2.6/site-packages/httplib2/__init__.py", line 871, in _conn_request
response = conn.getresponse()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 950, in getresponse
response.begin()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 390, in begin
version, status, reason = self._read_status()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 348, in _read_status
line = self.fp.readline()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 395, in readline
data = recv(1)
File "/Users/caseycrites/.virtualenvs/nash/lib/python2.6/site-packages/eventlet/greenio.py", line 238, in recv
timeout_exc=socket.timeout("timed out"))
File "/Users/caseycrites/.virtualenvs/nash/lib/python2.6/site-packages/eventlet/hubs/__init__.py", line 117, in trampoline
listener = hub.add(hub.READ, fileno, current.switch)
File "/Users/caseycrites/.virtualenvs/nash/lib/python2.6/site-packages/eventlet/hubs/hub.py", line 126, in add
evtype, fileno, evtype))
RuntimeError: Second simultaneous read on fileno 10 detected. Unless you really know what you're doing, make sure that only one greenthread can read any particular socket. Consider using a pools.Pool. If you do know what you're doing and want to disable this error, call eventlet.debug.hub_multiple_reader_prevention(False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment