[Twisted-Python] telnet works, why wont this client/protocol test?

Mike Winter miwinter at cisco.com
Thu Jan 12 13:20:24 EST 2012


Thanks for the link, added to code as comment.

On Jan 12, 2012, at 10:06:16AM, Augusto Mecking Caringi wrote:

> On Thu, Jan 12, 2012 at 3:56 PM, Mike Winter <miwinter at cisco.com> wrote:
>> That helps, thanks.
>> 
>> I know that http processing does \r\n, I suppose there is an rfc that says this is reasonable, and LineReceiver is designed to be used in http for the same reason.
> 
> "Most textual Internet protocols (including HTTP, SMTP, FTP, IRC and
> many others) mandate the use of ASCII CR+LF (0x0D 0x0A) on the
> protocol level, but recommend that tolerant applications recognize
> lone LF as well."
> 
> http://en.wikipedia.org/wiki/Newline#Representations
> 
> []'s
> 
>> On Jan 12, 2012, at 4:42:45AM, Itamar Turner-Trauring wrote:
>> 
>>> At a guess, it's because by default LineReceiver splits on '\r\n', but
>>> you're sending only '\n'.
>>> 
>>> -Itamar
> 
> -- 
> Augusto Mecking Caringi
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python




More information about the Twisted-Python mailing list