Need help to understand pfiles output on solaris10

From: naan than (naanthanda@gmail.com)
Date: Sat Sep 22 2007 - 01:10:15 EDT


 Hi,
My client application is connecting to a remote server using TCP/IP. When
the connection is established and the communication is going on between my
application and the remote server, i am seeing the following lines in the
pfiles output:

4: S_IFIFO mode:0666 dev:306,77000 ino:37354 uid:23718 gid:23718 size:0
O_RDWR
/dataserver/baais2_server/tmp/fifo.7998
5: S_IFSOCK mode:0666 dev:349,0 ino:58451 uid:0 gid:0 size:0
O_RDWR
SOCK_STREAM
SO_SNDBUF(49152),SO_RCVBUF(1002016),IP_NEXTHOP(0.15.74.3)
sockname: AF_INET 150.252.11.19 port: 33764
peername: AF_INET 16.101.119.5 port: 4712

When the server was brought down, my application is supposed to close the
existing connection and try to reconnect, but i believe it is not closing
the existing socket. I am seeing the following lines in the pfiles output

4: S_IFIFO mode:0666 dev:306,77000 ino:37354 uid:23718 gid:23718 size:0
O_RDWR
/dataserver/baais2_server/tmp/fifo.7998
5: S_IFSOCK mode:0666 dev:349,0 ino:58451 uid:0 gid:0 size:0
O_RDWR
SOCK_STREAM
SO_SNDBUF(49152),SO_RCVBUF(1002016),IP_NEXTHOP(0.15.74.3)
sockname: AF_INET 150.252.11.19 port: 33764

- When the server is down, my client program is not sending any SYN at all;
nor is in ESTABLISHED state. I was expecting a CLOSE_WAIT state.In fact i am
not seeing any state in netstat output.

As i said, i believe my application is not closing the socket. Could someone
please shed some light on this?

Would SO_LINGER option on the client side resolve the above issue?

Note: I am running 3 instances of my client program and only one got into
this issue. The other 2 are at-least sending SYN to the remote server when
it was down. For those 2 servers, i dont see the any line starts with
"S_IFSOCK "

i would appreciate your response!!

Thanks
Naan.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:21 EDT