HP-UX (IA64) download file only 64k
Igor Sysoev
igor at sysoev.ru
Thu Jul 1 13:33:29 MSD 2010
On Thu, Jul 01, 2010 at 04:13:24AM -0400, cauherk wrote:
> nginx nginx-0.7.62
> OS HP-UX B.11.31 U ia64
> gcc hp-gcc-4.4.3
>
>
> when a file bigger than 64K , download the file just only 64k.
>
> The error.log contains
> [alert] 8222#0: *6 writev() failed (246: Operation would block) while
> sending response to client
>
> Someone help me.
Try the attached patch.
--
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/os/unix/ngx_errno.h
===================================================================
--- src/os/unix/ngx_errno.h (revision 2985)
+++ src/os/unix/ngx_errno.h (working copy)
@@ -30,7 +30,6 @@
#define NGX_EINVAL EINVAL
#define NGX_ENOSPC ENOSPC
#define NGX_EPIPE EPIPE
-#define NGX_EAGAIN EAGAIN
#define NGX_EINPROGRESS EINPROGRESS
#define NGX_EADDRINUSE EADDRINUSE
#define NGX_ECONNABORTED ECONNABORTED
@@ -48,6 +47,11 @@
#define NGX_EILSEQ EILSEQ
#define NGX_ENOMOREFILES 0
+#if (__hpux__)
+#define NGX_EAGAIN EWOULDBLOCK
+#else
+#define NGX_EAGAIN EAGAIN
+#endif
#define ngx_errno errno
More information about the nginx
mailing list