|
First, Use netstat option 3 an look at the open connections to see if the reuse function is working properly. JMS.. ----- Original Message ----- From: "Shannon ODonnell" <sodonnell@xxxxxxxxxxxxxxxxx> To: "'Midrange Systems Technical Discussion'" <midrange-l@xxxxxxxxxxxx> Sent: Wednesday, April 07, 2004 5:34 PM Subject: Socket Question > I have a series of jobs that run in batch and spawn a bunch of socket > jobs. Basically, I used Scott Klement's sample socket programs and > modified them to do what I needed. > > Everything works really well, except that after the second or third (I > think) rendition of the socket listener spawning a new job the whole > thing just kind of hangs as if the sockets are all used up. Now...using > Scott's design, I spawn about 10 socket instances from the single > socket listener and from there as each spawned job finishes, I terminate > the program and the main socket listener spawns another socket, reusing > that now closed socket port. And, as I say, it works fine for awhile, > but at some point it all just hangs. To "fix" this, I end the socket > jobs and restart them. Then everything works fine again for awhile, > until, once again it hangs. > > I'm wondering if the sockets ports are really being freed up like I > think they are or if something else is going on. > > Suggestions? > > Shannon O'Donnell > > > > > > > > _______________________________________________ > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/midrange-l > or email: MIDRANGE-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.