Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed display of Long Poll address. #48

Open
wants to merge 1 commit into from

1 participant

@zeonglow

Address is now constructed from proto, host and url rather than grabbed
from server[4] which was always empty.

Suppressed 'LP IO error' as this is normal and is confusing to noobs.

(tested with eligius)

@zeonglow zeonglow Fixed display of Long Poll address.
Address is now constructed from proto, host and url rather than grabbed
from server[4] which was always empty.

Suppressed 'LP IO error' as this is normal and is confusing to noobs.

(tested with eligius)
a893285
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 14, 2012
  1. @zeonglow

    Fixed display of Long Poll address.

    zeonglow authored
    Address is now constructed from proto, host and url rather than grabbed
    from server[4] which was always empty.
    
    Suppressed 'LP IO error' as this is normal and is confusing to noobs.
    
    (tested with eligius)
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 HttpTransport.py
View
6 HttpTransport.py
@@ -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
@@ -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)
@@ -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
Something went wrong with that request. Please try again.