RPC server and client deadlocking

Thomas-K. Bischoff bisc at zellweger.ch
Thu Jun 6 00:17:00 AEST 1991


Hi RPC-experts,

I have a self written RPC server and client which run fine but, after 
running some time do deadlock. The client is also a transient server.
All calls to server are done synchron and no batched. All calls to the
transient server in the client are done async and batched. All calls
are with tcp.

The server is blocking in a write call. Here are the last few lines from
a 'trace server' command :

select (64, 0xf7ffef88, 0, 0, 0xf776e0d0) = 1
read (10, "".., 4000) = 92
write (10, "".., 28) = 28
select (64, 0xf7fff898, 0, 0, 0) = 1
select (64, 0xf7ffef88, 0, 0, 0xf776e0d0) = 1
read (10, "".., 4000) = 92
write (7, "".., 4000) =  

The client also blocks in a write call.

It seems that the problem has something to do with filled buffers, because
when I do a 'netstat -f inet' it gives me :

Active Internet connections
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp        0      0  saturn3.3810           saturn3.3815           ESTABLISHED
tcp        0      0  saturn3.3815           saturn3.3810           ESTABLISHED
tcp        0      0  saturn3.3814           uranus.3000            ESTABLISHED
tcp     4096   4096  saturn3.3811           saturn3.3813           ESTABLISHED
tcp     4096   4096  saturn3.3813           saturn3.3811           ESTABLISHED
tcp        0      0  saturn3.3810           saturn3.3812           ESTABLISHED
tcp        0      0  saturn3.3812           saturn3.3810           ESTABLISHED
tcp        0      0  saturn3.3464           uranus.3000            ESTABLISHED

Can somebody enlighten me ?

Thomas K. Bischoff
Zellweger Uster AG                      Net:    bisc at zellweger.ch
Amtsstrasse 3                           Phone:  xx41-1-9433522
CH 8610 Uster, Switzerland


-- 
 __________________________________________________________________________
|Thomas K. Bischoff, TEN Informatik AG, Schaffhauserstr. 1                 |
|CH 8400 Winterthur, Switzerland                                           |
|Phone: xx41-52-235323, Fax:xx41-52-235328,  Net:    bisc at zellweger.ch     |




More information about the Comp.sys.sun mailing list