Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2003 23:11:20 +0100 (CET)
From:      Martin Blapp <mb@imp.ch>
To:        Thomas Moestl <tmoestl@gmx.net>
Cc:        current@freebsd.org, "" <net@freebsd.org>
Subject:   Re: PANIC in tcp_syncache.c sonewconn() line 562
Message-ID:  <20030113230616.B74437@levais.imp.ch>
In-Reply-To: <20030113215318.GA278@crow.dom2ip.de>
References:  <20030113173957.T73725@levais.imp.ch> <20030113215318.GA278@crow.dom2ip.de>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi Thomas,

> The solution should be to reject the listen() with EINVAL (which seems
> to be that standard-mandated error for connected sockets); patch
> attached.

Cool, thank you for the proposed solution. I suspected something like this;
rpcgen does generate quite broken code sometimes, and nobody cared about
fixing these old bugs. :-(

Since rpcgen in STABLE is broken too, it's not my fault ;)

I'll provide a rpcgen patch too which has the call to
listen() removed (in the inetd case) after the socket
is already connected.

I guess a "rpcgen -I" generated server should knew about this issue and
test properly if it is run standalone or from inetd. The solution I think
would be to reuse the socket. I'll provide a fix for this !

Martin

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030113230616.B74437>