mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-14 22:49:50 +00:00
fix: make sure that the message is completely sent
This commit is contained in:
parent
742705b855
commit
705fd76767
1 changed files with 4 additions and 1 deletions
|
@ -269,7 +269,10 @@ class TcpStratumInterface(Interface):
|
||||||
#print "-->",request
|
#print "-->",request
|
||||||
self.message_id += 1
|
self.message_id += 1
|
||||||
out += request + '\n'
|
out += request + '\n'
|
||||||
self.s.send( out )
|
|
||||||
|
while out:
|
||||||
|
sent = self.s.send( out )
|
||||||
|
out = out[sent:]
|
||||||
|
|
||||||
def get_history(self, addr):
|
def get_history(self, addr):
|
||||||
self.send([('blockchain.address.get_history', [addr])])
|
self.send([('blockchain.address.get_history', [addr])])
|
||||||
|
|
Loading…
Add table
Reference in a new issue