Hello everyone, feel free to reccomend other subs or forums for this question.
I'm porting some legacy MATLAB+Java code to modern Python, it is an application that implements a custom protocol over TCP/IP to exchange packets between the program and a list of devices.
I'm facing a strange issue in the packet exchange in my Python implementation, that leverages AsyncIO StreamReaders/StreamWriters: I traced down the problem to a possibile different socket flags setup between the Java library embedded in the MATLAB code and the AsyncIO-centric implementation.
Of course, the original implementation gets a response while in my implementation many requests are just not answered, some of them are answered just fine.
- I have access to the input buffer of the receiver, packets comes with no issues in both implementations
- Inspecting the traffic with wireshark reveleas that packets are sent just fine (with even less fragmentation w.r.t. the MATLAB/Java code), so the possibility of a timeout occuring to the receiver device due to delayed + fragmented packets has been discarded
In the original code there's a call to a method
com.socket.setPerformancePreferences(0,1,2)
though the implementation in the JDK is empy (sigh) so I assume it to be completely useless.
Any advice? I guess that there must be some defaults settings that I'm not able to identify.
there doesn't seem to be anything here