Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch Disconnect() in wait after calling recv #26

Closed
wants to merge 1 commit into from

Conversation

katkad
Copy link
Contributor

@katkad katkad commented Aug 30, 2013

to avoid:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 390, in run
result = self._run(_self.args, *_self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/Conpot-0.2.2-py2.7.egg/conpot/logging/log_worker.py", line 41, in start
self.friends_feeder.log(json.dumps(event, default=self.json_default))
File "/usr/local/lib/python2.7/dist-packages/Conpot-0.2.2-py2.7.egg/conpot/logging/hpfriends.py", line 36, in log
error_msg = self.hpc.wait()
File "/usr/local/lib/python2.7/dist-packages/hpfeeds.py", line 203, in wait
d = self.recv()
File "/usr/local/lib/python2.7/dist-packages/hpfeeds.py", line 88, in recv
if not d: raise Disconnect()
Disconnect
<Greenlet at 0xb71b75ccL: <bound method LogWorker.start of <conpot.logging.log_worker.LogWorker object at 0xb71bf82c>>> failed with Disconnect

@CZNIC-GitLab CZNIC-GitLab deleted the recv_disconnect3 branch May 4, 2015 07:54
@rep
Copy link
Collaborator

rep commented May 21, 2015

With the current version not necessary anymore. Thanks though!

@rep rep closed this May 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants