git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
742705b
)
fix: make sure that the message is completely sent
author
ThomasV
<thomasv@gitorious>
Sat, 19 May 2012 14:52:59 +0000 (16:52 +0200)
committer
ThomasV
<thomasv@gitorious>
Sat, 19 May 2012 14:52:59 +0000 (16:52 +0200)
lib/interface.py
patch
|
blob
|
history
diff --git
a/lib/interface.py
b/lib/interface.py
index
b58b6cb
..
c29dab7
100644
(file)
--- a/
lib/interface.py
+++ b/
lib/interface.py
@@
-269,7
+269,10
@@
class TcpStratumInterface(Interface):
#print "-->",request
self.message_id += 1
out += request + '\n'
- self.s.send( out )
+
+ while out:
+ sent = self.s.send( out )
+ out = out[sent:]
def get_history(self, addr):
self.send([('blockchain.address.get_history', [addr])])