Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-14 Thread Rene de Vries
out after 2MSL. I set my MSL to the lowest possible setting (10) as to make TIME_WAIT connections disappear. The FIN_WAIT_[1,2] and LAST_ACK seem to be sticking around for a while. Do the FIN_WAIT_1|2 and LAST_ACK time out after 2MSL or do they stick around forever? If they stick around forever

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-06 Thread Richard Wendland
> They are not timing out after 2MSL. I set my MSL to the lowest possible > setting (10) as to make TIME_WAIT connections disappear. The FIN_WAIT_[1,2] > and LAST_ACK seem to be sticking around for a while. > >Do the FIN_WAIT_1|2 and LAST_ACK time out after 2MSL or do they

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-06 Thread Chuck Swiger
Brandon Erhart wrote: They are not timing out after 2MSL. I set my MSL to the lowest possible setting (10) as to make TIME_WAIT connections disappear. The FIN_WAIT_[1,2] and LAST_ACK seem to be sticking around for a while. However, not ALL of them stick around for a "long time"(more

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-06 Thread Tony Finch
Julian Elischer <[EMAIL PROTECTED]> wrote: > > I have noticed an increasing number of machines on the net >are terminating their session (usually the server, but not always) >with a RESET packet instead of a FIN packet. > >I don't know what kind of machines this is but next time I see it I >guess

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Brandon Erhart
Hello, They are not timing out after 2MSL. I set my MSL to the lowest possible setting (10) as to make TIME_WAIT connections disappear. The FIN_WAIT_[1,2] and LAST_ACK seem to be sticking around for a while. However, not ALL of them stick around for a "long time"(more on this in a s

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Andre Oppermann
Julian Elischer wrote: > On the topic of Session shutdown... > > I have noticed an increasing number of machines on the net > are terminating their session (usually the server, but not always) > with a RESET packet instead of a FIN packet. > In particular it seems that if the machine in question

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Andre Oppermann
Brandon Erhart wrote: > > Well, I responded to the group that I had taken one of the fellows advice > posting here, and modified the tcp_usrclosed in netinet/tcp_usrreq.c. > > So all is well -- it gets TCPS_CLOSED state and the tcps_close() function > called on the tuple IMMEDIATELY. It doesn't s

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Andre Oppermann
Brandon Erhart wrote: > > Hello everyone, > > I am writing a network application that mirrors a given website (such as a > suped-up "wget"). I use a lot of FDs, and was getting connect() errors when > I would run out of local_ip:local_port tuples. I lowered the MSL so that > TIME_WAIT would timeo

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Julian Elischer
On Mon, 5 Apr 2004, Eli Dart wrote: > > In reply to Brandon Erhart <[EMAIL PROTECTED]> : > > > Well, I responded to the group that I had taken one of the fellows advice > > posting here, and modified the tcp_usrclosed in netinet/tcp_usrreq.c. > > > I understand that -- I was trying to disco

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Eli Dart
In reply to Brandon Erhart <[EMAIL PROTECTED]> : > Well, I responded to the group that I had taken one of the fellows advice > posting here, and modified the tcp_usrclosed in netinet/tcp_usrreq.c. I understand that -- I was trying to discover if you'd come across something that needed a more

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Brandon Erhart
Well, I responded to the group that I had taken one of the fellows advice posting here, and modified the tcp_usrclosed in netinet/tcp_usrreq.c. So all is well -- it gets TCPS_CLOSED state and the tcps_close() function called on the tuple IMMEDIATELY. It doesn't switch states depending on which

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Eli Dart
In reply to Brandon Erhart <[EMAIL PROTECTED]> : > Hello everyone, > However, I have run into a new problem. I am getting a good amount of > blocks stuck in FIN_WAIT_1, FIN_WAIT_2 or LAST_ACK that stick around for a > long while. Could you define "long" in this case? Are we talking about 60

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Brandon Erhart
Chuck, That worked perfectly :) Thank you all so much for your help. I'm sure I'll be back with more questions during the course of this project! Brandon At 04:46 PM 4/4/2004, you wrote: Brandon Erhart wrote: I want to explicitly get it out of those states, without any help from the other end

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Chuck Swiger
Brandon Erhart wrote: I want to explicitly get it out of those states, without any help from the other end. What must I modify to achieve this? See tcp_usrclosed() in /usr/src/sys/netinet/tcp_usrreq.c. Replace that code with something like (untested): tp->t_state = TCPS_CLOSED; tp = tcp_c

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Mike Silbersack
On Sun, 4 Apr 2004, Brandon Erhart wrote: > Hello everyone, > > I am writing a network application that mirrors a given website (such as a > suped-up "wget"). I use a lot of FDs, and was getting connect() errors when > I would run out of local_ip:local_port tuples. I lowered the MSL so that > TIM

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Brandon Erhart
I want to explicitly get it out of those states, without any help from the other end. What must I modify to achieve this? Brandon At 04:26 PM 4/4/2004, you wrote: Brandon Erhart wrote: [ ... ] Any advice on the timeouts? I don't really care about the RFC , honestly :-P. Like I said, I'm going f

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Chuck Swiger
Brandon Erhart wrote: [ ... ] Any advice on the timeouts? I don't really care about the RFC , honestly :-P. Like I said, I'm going for sheer speed. My advice was to read the RFC as it contains significant discussion about these timeouts, but you're free to disregard it if you please. In particul

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Brandon Erhart
Yes, it pays attention to /robots.txt. But, I am writing my own -- I don't want to use rsync, wget, anything like that. This is part of an archiving project, and it uses so many FDs because it has tons of connections opened to DIFFERENT servers at different times .. not just one site. Any advi

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Chuck Swiger
Brandon Erhart wrote: I am writing a network application that mirrors a given website (such as a suped-up "wget"). I use a lot of FDs, and was getting connect() errors when I would run out of local_ip:local_port tuples. I lowered the MSL so that TIME_WAIT would timeout very quick (yes, I know, t

RE: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Brandon Erhart
Don, I have lowered the MSL .. please note what I said in my original post. This seems to have no effect on FIN_WAIT_[1,2] nor LAST_ACK. At 03:54 PM 4/4/2004, you wrote: From: Brandon Erhart [mailto:[EMAIL PROTECTED] > Hello everyone, > > I am writing a network application that mirrors a given >

RE: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Don Bowman
From: Brandon Erhart [mailto:[EMAIL PROTECTED] > Hello everyone, > > I am writing a network application that mirrors a given > website (such as a > suped-up "wget"). I use a lot of FDs, and was getting > connect() errors when > I would run out of local_ip:local_port tuples. I lowered the > MS

FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Brandon Erhart
Hello everyone, I am writing a network application that mirrors a given website (such as a suped-up "wget"). I use a lot of FDs, and was getting connect() errors when I would run out of local_ip:local_port tuples. I lowered the MSL so that TIME_WAIT would timeout very quick (yes, I know, this i