mccartyn
mccartyn

Reputation: 61

python TCP window size

I am writing a python script to communicate with a embedded system that is running Freescale's MQX RTOS. I have to choose the RX window size in MQX and, for now, I have left it at its default value of 4380 bytes; three segments of 1460 bytes. The problem that I have now is that my python script, running on my host machine (gigabit ethernet controller going through a gigabit switch, autonegotiated to 1Gbps) is sending segments with a window size of 64199 bytes. It appears that when I attempt to send a large amount of data it overflows the MQX recieve buffer (as MQX reports a "Rx, Segments outside of Window" and drops the segment).

Is there a way using python sockets to adjust the window size?

I am using Python 2.7, Windows 7.

I cant post images yet but basically with wireshark I can verify the window sizes above.

Upvotes: 3

Views: 4205

Answers (0)

Related Questions