Article View: news.software.nntp
Article #30344INN 2.x on HPUX 11 patch
From: Per Harald Myrvang
Date: Fri, 07 Aug 1998 00:00
Date: Fri, 07 Aug 1998 00:00
39 lines
1967 bytes
1967 bytes
Here's a quick'n'dirty patch to innd/chan.c that fixes a problem with nnrpd
returning incomplete data after e.g. the LIST command. Might also apply to HPUX
10.x with broken listen/nonblocking/accept, and earlier versions of INN (might
need patching by hand).
---8<---8<--- Cut below this line 8<---8<---8<---8<---8<---8<---8<---8<---
--- chan.c.orig Tue Aug 4 14:25:01 1998
*** chan.c Tue Aug 4 14:35:28 1998
***************
*** 170,173 ****
--- 170,178 ----
/* Make the descriptor close-on-exec and non-blocking. */
CloseOnExec(fd, TRUE);
+ #if !defined(HPUX)
+ /* Stupid HPUX 11.0 has a broken listen/accept where setting the
+ * listensocket to nonblocking prevents you from successfully setting the
+ * socket returned by accept(2) back to blocking mode, no matter what,
+ * resulting in all kinds of funny behaviour, data loss, etc. etc. */
if (SetNonBlocking(fd, TRUE) < 0
#if defined(ENOTSOCK)
***************
*** 179,182 ****
--- 184,188 ----
)
syslog(L_ERROR, "%s cant nonblock %d %m", LogName, fd);
+ #endif
/* Note control channel, for efficiency. */
---8<---8<--- Cut above this line 8<---8<---8<---8<---8<---8<---8<---8<---
Thanks to Matt Dillon for pointing this out deep inside the diablo source.
--
Per Harald Myrvang Newsmaster University of Troms�
Email: perm@cc.uit.no Work: +47 7764 6472 Pager: +47 968 31628
Technical Details
Message-ID:
<6qeusp$hqv$1@news.uit.no>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-mailShow Full Headers
Complete Article Headers
Message-ID: <6qeusp$hqv$1@news.uit.no> Subject: INN 2.x on HPUX 11 patch Date: Fri, 07 Aug 1998 00:00:00 +0000 From: perm@cc.uit.no (Per Harald Myrvang) 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: 378838015 Organization: Computer Centre, University of Tromsoe Newsgroups: news.software.nntp