good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
PlRPC and TIME_WAITby shushu (Scribe) |
on Dec 27, 2002 at 11:23 UTC ( [id://222518]=perlquestion: print w/replies, xml ) | Need Help?? |
shushu has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I am using PlRPC to execute a method on a remote server. My client is Linux RH 7.3 with Perl 5.6.1, and my server in WinNT 4.0 with Perl 5.5.3. The action works fine, but when I want to disconnect, I want to do it good. Up until now all I do is "close $client->{socket}", but although looking at the TCPDUMP the whole 4 ways handshake looks fine, I still get "TIME_WAIT" on the client side for several seconds. It wasn't problematic, but Since I need to open lots of connections like that (not all to the same machine, and no, I can't keep the connection alive), it might cause a problem. The question is - is there a better way to close the connection ? TIA, shushu
Back to
Seekers of Perl Wisdom
|
|