Open Splitframe opened 2 years ago
I just cannot find a solution. I tried buffering the file in RAM and writing it after it finishes to reduce socket answer times and I also tried adding a few nanoseconds of delay to don't flood the server, nothing worked. The error is "Connection Reset by Peer" and only occurs on Linux (Docker), but not on Windows and always around the 500MB mark. I am at my wits end.
Sometimes, mostly around the 500MB mark, the DCC transfers seem to get stuck at
connection.send_bytes(struct.pack("!I", self.received_bytes))
The previous package is received and then execution just stops at the above function. It's a little hard to debug since a few thousand packages go through so manually stepping through is not feasable.
Is this related to the warning that TCP Buffers can block?
Here are my relevant functions. Any Idea would be appreciated.