Thread View: news.software.nntp
1 messages
1 total messages
Started by Per Harald Myrvang
Fri, 07 Aug 1998 00:00
INN 2.x on HPUX 11 patch
Author: 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
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