I have a file transfer client and server that works just fine and uses tcplistener and tcpclient. My problem is this: when I transfer this one file over the internet for testing, almost exactly at when 43% of the transfer is complete, the transfer rate suddenly inflates really high and the ETA drops like a brick. Before this though, the speed and ETA are displayed correctly. However after it inflates, it does start to level out, but it takes a very long time for it to go back to what it should be reading. This happens consistently, with other large files this happens also, but at a different completion percentage.
I have tried changing the client side to send small chunks of the file at a time instead of writing the entire contents to the networkstream at once, but that made no difference. Initially I was only having it update the speed and ETA display every so many seconds, but the artificial inflation still ocurred. The aforementioned file is only 12.1mb.
Does anyone have any suggestions as to what might cause this to happen consistently?
I have tried changing the client side to send small chunks of the file at a time instead of writing the entire contents to the networkstream at once, but that made no difference. Initially I was only having it update the speed and ETA display every so many seconds, but the artificial inflation still ocurred. The aforementioned file is only 12.1mb.
Does anyone have any suggestions as to what might cause this to happen consistently?