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

Fixed display of Long Poll address. #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions HttpTransport.py
Expand Up @@ -182,7 +182,7 @@ def long_poll_thread(self):
if host != last_host: self.close_lp_connection()
self.lp_connection, changed = self.ensure_connected(self.lp_connection, proto, host, self.long_poll_timeout)
if changed:
say_line("LP connected to %s", self.server[4])
say_line("Long Poll: Connected to %s://%s%s", (proto, host, url))
last_host = host

self.long_poll_active = True
Expand All @@ -200,7 +200,7 @@ def long_poll_thread(self):
say_line('long poll: %s', e)
sleep(.5)
except (IOError, httplib.HTTPException, ValueError, socks.ProxyError):
say_line('long poll: IO error')
#say_line('long poll: IO error')
#traceback.print_exc()
self.close_lp_connection()
sleep(.5)
Expand Down Expand Up @@ -247,4 +247,4 @@ def decode(self, work):

calculateF(job.state, job.merkle_end, job.time, job.difficulty, job.f, job.state2)

return job
return job