<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jul 27, 2013, at 3:12 PM, gary clark <<a href="mailto:burslem2001@yahoo.com">burslem2001@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; right: auto;"><span style="right: auto;">Ok finally fixed the damn thing. I made the packets smaller and created a task in the .tac file to call a  routine that send the message parts piece by piece.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; right: auto;"><span style="right: auto;"><var id="yui-ie-cursor"></var></span> </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; right: auto;"><span style="right: auto;">Thanks,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; right: auto;"><span style="right: auto;">Gazza</span></div><br class="Apple-interchange-newline"></blockquote></div><br><div>That's the wrong way to implement that.  You can't rely on any particular MTU over the internet, or even over one particular stream; it can change over time.  TCP connections are streams of bytes.  Please see the following FAQ:</div><div><br></div><div><<a href="http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#Whyisprotocol.dataReceivedcalledwithonlypartofthedataIcalledtransport.writewith">http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#Whyisprotocol.dataReceivedcalledwithonlypartofthedataIcalledtransport.writewith</a>></div><div><br></div><div>-glyph</div><div><br></div></body></html>