View Single Post
  #2 (permalink)  
Old November 3rd, 2005
GregorK GregorK is offline
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Well its hard for Phex too to find out when a host has finished... because the host might always come back and download a different piece.

I try to explain you what you see on the display. First you need to know Phex supports HTTP Keep-Alive. That means a once established connection can be reused for a different request without the need to connect again.

So lets assume a host connects and request a piece from 0-100. You will see an upload line for this host with the progress growing to reach 100%. Once 100% is reached (the interface always lags a bit behind) the host might request the next piece in the same session again of length 100 (can be anywhere in the file). This would make the total size to upload grow from 100 bytes to 200 bytes and the 100% progress will decrease to 50% (100 of 200 finished) and it will start growing again when the upload proceeds.

But maybe out of what ever reason the connection breaks. Maybe the host decides to close it, or the network lags, or Phex decides to do so. There can be many reasons including possible bugs

In this case the upload session is "finished" for Phex. But the host might come back soon or later and start a new fresh upload connection and session. The result is that a new upload line is display and the whole process starts again. The port number is different because outgoing ports of hosts might vary, only the incoming port is usually fixed.

I have never heard of problems with transferring a certain file type like pdf.

Gregor
__________________
Reply With Quote