Weird behavior with either reading or write()ing !?

2004-04-10 Thread Brandon Erhart
Hello, This is a rather odd bug/weird behavior. Confidence is high that it is not logic in my code this time. Please read the following carefully! In a web-crawling program I am writing, I deal with several thousand fds at a time. I am using FreeBSD's KQueue to keep track of them all so that I

The Almighty KQueue

2004-04-06 Thread Brandon Erhart
Hi, I told you all I'd be back for more :) I am not sure if this is the most appropriate place to post this, but it seems that you all know what the hell you're talking about, so I figure you can help me out here. As I said in my previous post about the FIN_WAIT states, I am writing a web su

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Brandon Erhart
I rebooted the computer. Is this bad? :) Brandon At 04:09 PM 4/5/2004, you wrote: 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

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-05 Thread Brandon Erhart
which state the connection is currently in. I also made a sysctl variable for it (to turn the "feature" on or off), and will post the small patch along w/ some other small changes I have made soon. Thanks, Brandon At 11:17 AM 4/5/2004, you wrote: In reply to Brandon Erhart &l

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

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&#x

Re: FIN_WAIT_[1,2] and LAST_ACK

2004-04-04 Thread Brandon Erhart
Any advice on the timeouts? I don't really care about the RFC , honestly :-P. Like I said, I'm going for sheer speed. Brandon At 04:02 PM 4/4/2004, you wrote: Brandon Erhart wrote: I am writing a network application that mirrors a given website (such as a suped-up "wget"). I

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 mirror

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