Thread View: news.software.nntp
3 messages
3 total messages
Started by John Kennedy
Mon, 08 Nov 1993 14:24
EAGAIN from accept()
Author: 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
Re: EAGAIN from accept()
Author: Rich Salz
Date: Mon, 08 Nov 1993 16:12
Date: Mon, 08 Nov 1993 16:12
7 lines
986 bytes
986 bytes
In <2blkre$agj@opel.secondsource.com> johnk@opel.secondsource.com (John Kennedy) writes: >Unfortunately, this slows down a news feed by 500ms per article. Er, you mean 500ms per connection, since accept() is only done when a remote site connects. /r$
Re: EAGAIN from accept()
Author: E.J.Leoni-Smith
Date: Mon, 08 Nov 1993 18:46
Date: Mon, 08 Nov 1993 18:46
27 lines
1566 bytes
1566 bytes
In article <2blkre$agj@opel.secondsource.com> johnk@opel.secondsource.com (John Kennedy) writes: > >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) > Just a thought. You have run out of Unix PROCESSES have you - I forget the format but on SCO you can check this with sar. You may just need to reconfigure the kernel to allow more concurrent processes, or I seem to recall that there are some config options in News to limit the spawning of processes. My impression of the Intercative TCP was always that it fell over with the WRONG error message :-) Hope I am not totally off target Leo
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads