socket closing question
Derek Atkins
warlord at MIT.EDU
Fri May 2 11:02:58 EDT 2003
This is a TCP socket?
There are a number of reasons why a TCP socket closed, including (but
not limited to):
- close() called on the local socket
- close() called on the remote socket
- RST packet received
- bad packet received
Have you tried running ethereal and watching the network?
Have you tried running strace and seeing if your application is calling
close()?
-derek
FRamsay at castelhq.com writes:
>
>
>
>
>
> I should probably clarify, the local application did not close the socket,
> but neither did the remote application.
> And yet the socket did close. So I'm trying to figure out where the socket
> originally closed and from there
> why the socket closed.
> -fjr
>
> Frank Ramsay
> Systems Programmer
> Castel, Inc
> 100 Cummings Center
> Suite 157h
> Beverly, MA 01915
> (978) 236 1000 (voice)
> (978) 236 1197 (fax)
> Email: framsay at castelhq.com
>
>
> |---------+---------------------------->
> | | Nathan Meyers |
> | | <nmeyers at javalinu|
> | | x.net> |
> | | Sent by: |
> | | discuss-admin at blu|
> | | .org |
> | | |
> | | |
> | | 05/02/2003 09:53 |
> | | AM |
> |---------+---------------------------->
> >------------------------------------------------------------------------------------------------------------------------------|
> | |
> | To: FRamsay at castelhq.com |
> | cc: discuss at blu.org |
> | Subject: Re: socket closing question |
> >------------------------------------------------------------------------------------------------------------------------------|
>
>
>
>
> On Fri, May 02, 2003 at 09:45:26AM -0400, FRamsay at castelhq.com wrote:
> >
> > When a socket closes, is there a way to determine if it closed locally or
> > remotely?
>
> What do you mean by "closed locally"? That your own application closed it?
>
> Nathan Meyers
> nmeyers at javalinux.net
>
> >
> >
> > -fjr
> >
> >
> > Frank Ramsay
> > Systems Programmer
> > Castel, Inc
> > 100 Cummings Center
> > Suite 157h
> > Beverly, MA 01915
> > (978) 236 1000 (voice)
> > (978) 236 1197 (fax)
> > Email: framsay at castelhq.com
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss
>
>
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the Discuss
mailing list