Danek, Danek Duvall píše v Čt 06. 10. 2011 v 13:46 -0700: > Milan Jurik wrote: > > > Danek Duvall píše v čt 06. 10. 2011 v 11:31 -0700: > > > > > Why a linear backoff instead of exponential (retries *= 2)? > > > > I was thinking of both but here I hope TIME_WAITed connection will be > > freed soon. Usually you wait few seconds (if you are not flooding the > > server from the client). Longer (exponential) timeouts will mean more > > likely interactive session will be stopped by user and we are not afraid > > of more tries on the connection initiator side (only FTP server TCP > > layer is queried). Do you see any argument for exponential backoff? > > Curious, more than anything. Why not, then a constant backoff -- sleep one > or two seconds each time, and bump retries up to 60 or 120 (which is where > you'll end up right now if you go through all the retries)? >
in such case it would be enough to do 6 retries to reach 1MSL (127 secs in this case), with slower reaction on change of status connection. I think I found one small counter argument - currently BSD based ftpd are using some form of liner backoff in this case and they do this for years. Best regards, Milan _______________________________________________ userland-discuss mailing list userland-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/userland-discuss