python - Twisted > How to read a TCP message longer than TCP frame-length e.g. 1380 bytes from a window TCP client -


i writing twisted server read tcp messages 64kb. discovered mt datareciever called linereciever class every 1380 bytes, turned out windows client's tcp frame size. there way around without having loop through these 1380 byte blocks?

from twisted.internet.protocol import protocol twisted.internet.protocol import factory twisted.enterprise.adbapi import connectionpool class csvreceiver(protocol):     def datareceived(self, line):         print 'line rx :', len(line) , ' : ' , str(line) 

the datareceived gets called , prints every 1380 bytes, e.g. 4x when tcp message of 6kb sent our server. method avoid can process entire string in 1 call-back?

thank you.

stan

you asked question on python_forum, answered there. want using linereciever, , want set max_length higher number.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -