Hi

I've reviewed the C# code as best as I can and it looks standard and I
can't figure out the difference below.

I will explain what I mean by "not working".

The client Python code is able to auth and establish a connection.
However, when the server pushes a message and it's received, I think
we are not doing a reply it expects and then closes the connection.
The only difference I can see between working and non-working is the
reply (captured via pcap). This seems to be the last error before the
core my Python port is complete. (I've tried for over a week to fix
this, but without luck.)

As Jens was kind enough to help decode my problem before he said
>> \x80\x01\x00\x01
>Thrift message header

However the working example has a lot before the Thrift message
header. What is this?

Working C#:
load      = 
'\x00\x00\x00#\x0f\xff\x00\t\x00\x00\x00\x01\x00\x01\x00\x00\x00\x00\x80\x01\x00\x02\x00\x00\x00\x08push_msg\x00\x00\x00\x00\x00'


Not working Python:
load      = 
'\x80\x01\x00\x03\x80\x01\x00\x02\x00\x00\x00\x08push_msg\x00\x00\x00\x00'

Thanks kindly,

Christopher

Reply via email to