thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From C Bergström <cbergst...@pathscale.com>
Subject Thrift Python vs C# Bi-Directional difference
Date Thu, 21 Mar 2019 09:38:30 GMT
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

Mime
View raw message