Article View: news.software.nntp
Article #43511Re: sparc11:0 cxnsleep can't read response : Error 0
From: Ishikawa,Chiaki,remove No Spam f...
Date: Wed, 19 Jan 2000 00:00
Date: Wed, 19 Jan 2000 00:00
57 lines
3070 bytes
3070 bytes
> /*
> ** Only use fcntl if O_NONBLOCK is available; O_NDELAY is *not* the same
> ** thing historically. The semantics of O_NDELAY are that if the read
> ** would block, it returns 0 instead. This is indistinguishable from an
> ** end of file condition. POSIX added O_NONBLOCK, which requires read to
> ** return -1 and set errno to EAGAIN, which is what we want.
> **
Right on!
I added a syslog line to connection.c (inn-2.2.2) to find out what was
going on and the innfeed was thinking that it obtained EOF condtion
after all.
>Jan 19 22:22:40 sparc20 innfeed[14264]: sparc11:0 cxnsleep can't read response : Error 0
>Jan 19 22:22:40 sparc20 innfeed[14264]: line=1672, i was IoEOF
(Line is the source code line number.)
Following is where the message was output.
/*
* called when a response has been read from the socket. This is
* where the bulk of the processing starts.
*/
static void responseIsRead (EndPoint e, IoStatus i, Buffer *b, void *d)
{
... variable declarations and many ASSERTs omitted ...
VALIDATE_CONNECTION (cxn) ;
bufferAddNullByte (b [0]) ;
peerName = hostPeerName (cxn->myHost) ;
if (i != IoDone)
{ /* uh oh. */
errno = endPointErrno (e) ;
syslog (LOG_ERR, RESPONSE_READ_FAILED, peerName, cxn->ident) ;
syslog (LOG_ERR, "line=%d, i was %s", __LINE__, int2iostatus(i)); /*CI*/
freeBufferArray (b) ;
====
I will see if if I can retrofit your code into 2.2.2,
(The inn runs on SunOS 4.1.4, and so I am not entirely sure
if the patch would work.)
Happy Hacking.
--
Ishikawa, Chiaki ishikawa@personal-media.co.jp.NoSpam or
(family name, given name) Chiaki.Ishikawa@personal-media.co.jp.NoSpam
Personal Media Corp. ** Remove .NoSpam at the end before use **
Shinagawa, Tokyo, Japan 142-0051
Technical Details
Message-ID:
<ng0vu2ndr.fsf@sparc18.personal-media.co.jp>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<nya9o7qmj.fsf@sparc18.personal-media.co.jp> <860i0g$3aq$1@inn.do.mms.mt.nec.co.jp> <npuv0kt1t.fsf@sparc18.personal-media.co.jp> <ylbt6km79b.fsf@windlord.stanford.edu> <nhfgb34e7.fsf@sparc18.personal-media.co.jp> <ylpuuzdkly.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <ng0vu2ndr.fsf@sparc18.personal-media.co.jp> Subject: Re: sparc11:0 cxnsleep can't read response : Error 0 Date: Wed, 19 Jan 2000 00:00:00 +0000 From: "Ishikawa,Chiaki,remove No Spam from the address"<ishikawa@personal-media.co.jp.NoSpam> References: <nya9o7qmj.fsf@sparc18.personal-media.co.jp> <860i0g$3aq$1@inn.do.mms.mt.nec.co.jp> <npuv0kt1t.fsf@sparc18.personal-media.co.jp> <ylbt6km79b.fsf@windlord.stanford.edu> <nhfgb34e7.fsf@sparc18.personal-media.co.jp> <ylpuuzdkly.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 574682195 Sender: ishikawa@sparc18.personal-media.co.jp X-Md4-Signature: 3314d393aa9ffab37f77bdcc12c1be85 X-Complaints-To: news@personal-media.co.jp X-Trace: sparc20.personal-media.co.jp 948289056 16107 192.9.200.18 (19 Jan 2000 13:37:36 GMT) Organization: Personal Media Corp., Tokyo, Japan. NNTP-Posting-Date: 19 Jan 2000 13:37:36 GMT Newsgroups: news.software.nntp