Welcome! Log In Create A New Profile

Advanced

Re: HP-UX (IA64) download file only 64k

July 01, 2010 05:38AM
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/
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

HP-UX (IA64) download file only 64k

cauherk July 01, 2010 04:13AM

Re: HP-UX (IA64) download file only 64k

Igor Sysoev July 01, 2010 05:38AM

Re: HP-UX (IA64) download file only 64k

cauherk July 03, 2010 01:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready