Article View: news.software.nntp
Article #2226EAGAIN from accept()
From: John Kennedy
Date: Mon, 08 Nov 1993 14:24
Date: Mon, 08 Nov 1993 14:24
47 lines
2593 bytes
2593 bytes
The system: INTERACTIVE 3.2 version 4.0
tcp/ip: INTERACTIVE 1.4
PPP: Morningstar 1.4 Beta
News: INN 1.4
While receiving news on the above system, I find that the accept() call in INN:
innd/rc.c:208: fd = accept(cp->fd, (struct sockaddr *)&remote, &size);
returns -1, errno = 11 (EAGAIN, No more processes)
This does not occur on an ethernet connection... it only happens when
running INN over PPP. I figure this is some sort of timing issue related
to the relatively slower link. The vendor-supplied man pages for accept() say:
[EAGAIN] The socket is marked non-blocking and no
connections are present to be accepted.
One would think that some sort of activity on the link has begun to arrive
that causes the select() to return, and that there is more data coming that
will satisfy the accept() call. I say this because a workaround for now
has been to put a 500ms delay just before the accept() call.
Unfortunately, this slows down a news feed by 500ms per article.
I have tried calling accept() 'AGAIN' when receiving this error - on the
second call accept() returns EPROTO.
I suspect the problem is in the TCP/IP from ISC. I can understand the accept()
call returning EAGAIN if some resource is scarce, but I would expect to
be able to make the system call until it succeeded. On the subject of scarse
resources, netstat -m shows plenty of streams, queues, mblocks, and dblocks.
No failures are reported.
Also, I get a number of errno=11
messages from select() within X11R5 from SGCS.
Anyone else had this experience?
--
John Kennedy johnk@secondsource.com
Second Source, Inc. uunet!opel!johnk
Annapolis, MD
Technical Details
Message-ID:
<2blkre$agj@opel.secondsource.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.ppp.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!paladin.american.edu!europa.eng.gtefsd.com!uunet!digex.net!opel.secondsource.com!opel.secondsource.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <2blkre$agj@opel.secondsource.com> Subject: EAGAIN from accept() Date: Mon, 08 Nov 1993 14:24:46 +0000 From: johnk@opel.secondsource.com (John Kennedy) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.ppp.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!paladin.american.edu!europa.eng.gtefsd.com!uunet!digex.net!opel.secondsource.com!opel.secondsource.com!not-for-mail Newsgroups: comp.unix.sys5.r3,comp.protocols.ppp,news.software.nntp Organization: Second Source, Inc. Annapolis, MD Lines: 46 Distribution: world NNTP-Posting-Host: opel.secondsource.com