osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [users@httpd] Re: Non Blocking write in apache


Hi Yann

I have tried to upload a file of 26.5mb on apache tomcat, which was successfull.
I tried to proxy request to tomcat with same file. But get following error.
Attaching the error_log.

Can you please help me to understand where I am going wrong ?

Thanks
Hemant


On Wed, Sep 12, 2018 at 8:37 PM Yann Ylavic <ylavic.dev@xxxxxxxxx> wrote:
On Wed, Sep 12, 2018 at 12:48 PM Hemant Chaudhary
<hemantdude.chaudhary@xxxxxxxxx> wrote:
>
> Actually it is setting sock->timeout to 0 in writev_nonblocking() in core_filters.c.
> arv = apr_socket_timeout_set(s, 0);
>
> Why does the default timeout  is changed and set to 0 ??

Because writev_nonblocking() is really non-blocking and should return
EAGAIN/EWOULDBLOCK when things start to block.
But writev_nonblocking() is a local function, called (indirectly) by
the core output filter which deals with EAGAIN appropriately.

Why is it an issue for mod_proxy_http? EAGAIN remains local to the
core filtering, but however mod_proxy_http always passes a FLUSH
bucket at the end of the body, so everything should be fine at the
core filter level...


Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Fri Sep 14 06:01:06.140527 2018] [core:trace5] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\server\protocol.c(645): [client 15.213.82.149:63010] Request received from client: POST /FileUploadServletExample/uploadFile HTTP/1.1
[Fri Sep 14 06:01:06.140857 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(420): [client 15.213.82.149:63010] Headers received from client:, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.140958 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Host: 15.213.91.33:5005, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.140972 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Connection: keep-alive, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.140981 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Content-Length: 27779786, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.140989 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Cache-Control: max-age=0, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.140997 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Origin: http://15.213.91.33:5005, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141006 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Upgrade-Insecure-Requests: 1, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141015 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Content-Type: multipart/form-data; boundary=----WebKitFormBoundary78WxpmrfbRHriF4B, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141024 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141035 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141044 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Referer: http://15.213.91.33:5005/FileUploadServletExample/, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141053 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Accept-Encoding: gzip, deflate, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141071 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Accept-Language: en-US,en;q=0.9, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141085 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_request.c(424): [client 15.213.82.149:63010]   Cookie: JSESSIONID=8871324532AD72668ADF636759984902, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141115 2018] [proxy:trace2] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\mod_proxy.c(663): [client 15.213.82.149:63010] AH03461: attempting to match URI path '/FileUploadServletExample/uploadFile' against prefix '/' for proxying, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141128 2018] [proxy:trace1] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\mod_proxy.c(748): [client 15.213.82.149:63010] AH03464: URI path '/FileUploadServletExample/uploadFile' matches proxy handler 'proxy:http://15.213.91.33:8199/FileUploadServletExample/uploadFile', referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141162 2018] [authz_core:debug] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\aaa\mod_authz_core.c(809): [client 15.213.82.149:63010] AH01626: authorization result of Require all granted: granted, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141172 2018] [authz_core:debug] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\aaa\mod_authz_core.c(809): [client 15.213.82.149:63010] AH01626: authorization result of <RequireAny>: granted, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141182 2018] [core:trace3] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\server\request.c(304): [client 15.213.82.149:63010] request authorized without authentication by access_checker_ex hook: /FileUploadServletExample/uploadFile, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141208 2018] [proxy_http:trace1] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\mod_proxy_http.c(60): [client 15.213.82.149:63010] HTTP: canonicalising URL //15.213.91.33:8199/FileUploadServletExample/uploadFile, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141239 2018] [proxy:trace2] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\proxy_util.c(1962): [client 15.213.82.149:63010] http: found worker http://15.213.91.33:8199/ for http://15.213.91.33:8199/FileUploadServletExample/uploadFile, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141254 2018] [proxy:debug] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\mod_proxy.c(1228): [client 15.213.82.149:63010] AH01143: Running scheme http handler (attempt 0), referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141265 2018] [proxy_http:trace1] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\mod_proxy_http.c(1904): [client 15.213.82.149:63010] HTTP: serving URL http://15.213.91.33:8199/FileUploadServletExample/uploadFile, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141277 2018] [proxy:debug] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\proxy_util.c(2156): AH00942: HTTP: has acquired connection for (15.213.91.33)
[Fri Sep 14 06:01:06.141288 2018] [proxy:debug] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\proxy_util.c(2209): [client 15.213.82.149:63010] AH00944: connecting http://15.213.91.33:8199/FileUploadServletExample/uploadFile to 15.213.91.33:8199, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141305 2018] [proxy:debug] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\proxy_util.c(2418): [client 15.213.82.149:63010] AH00947: connected /FileUploadServletExample/uploadFile to 15.213.91.33:8199, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.141582 2018] [proxy:trace2] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\proxy_util.c(2853): HTTP: fam 2 socket created to connect to 15.213.91.33
[Fri Sep 14 06:01:06.141954 2018] [proxy:debug] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\proxy_util.c(2887): AH02824: HTTP: connection established with 15.213.91.33:8199 (15.213.91.33)
[Fri Sep 14 06:01:06.141984 2018] [proxy:debug] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\proxy_util.c(3054): AH00962: HTTP: connection complete to 15.213.91.33:8199 (15.213.91.33)
[Fri Sep 14 06:01:06.175951 2018] [core:trace6] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\server\core_filters.c(525): [remote 15.213.91.33:8199] core_output_filter: flushing because of THRESHOLD_MAX_BUFFER
[Fri Sep 14 06:01:06.244691 2018] [core:trace6] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\server\core_filters.c(525): [remote 15.213.91.33:8199] core_output_filter: flushing because of THRESHOLD_MAX_BUFFER
[Fri Sep 14 06:01:06.306894 2018] [core:trace6] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\server\core_filters.c(525): [remote 15.213.91.33:8199] core_output_filter: flushing because of THRESHOLD_MAX_BUFFER
[Fri Sep 14 06:01:06.414337 2018] [core:trace6] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\server\core_filters.c(525): [remote 15.213.91.33:8199] core_output_filter: flushing because of THRESHOLD_MAX_BUFFER
[Fri Sep 14 06:01:06.454332 2018] [core:trace1] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\server\core_filters.c(561): (4022)Invalid function argument: [remote 15.213.91.33:8199] core_output_filter: writing data to the network
[Fri Sep 14 06:01:06.454425 2018] [proxy:error] [pid 553648168:tid 577241474279276548] (4022)Invalid function argument: [client 15.213.82.149:63010] AH01084: pass request body failed to 15.213.91.33:8199 (15.213.91.33), referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.454447 2018] [proxy_http:error] [pid 553648168:tid 577241474279276548] [client 15.213.82.149:63010] AH01097: pass request body failed to 15.213.91.33:8199 (15.213.91.33) from 15.213.82.149 (), referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.454466 2018] [proxy:debug] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\proxy\proxy_util.c(2171): AH00943: HTTP: has released connection for (15.213.91.33)
[Fri Sep 14 06:01:06.821906 2018] [http:trace3] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_filters.c(1128): [client 15.213.82.149:63010] Response sent with status 502, headers:, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.821925 2018] [http:trace5] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_filters.c(1135): [client 15.213.82.149:63010]   Date: Fri, 14 Sep 2018 06:01:06 GMT, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.821935 2018] [http:trace5] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_filters.c(1138): [client 15.213.82.149:63010]   Server: Apache/2.4.29 (Unix) mod_wsgi/4.5.14 Python/2.7 OpenSSL/1.0.2d, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.821947 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_filters.c(957): [client 15.213.82.149:63010]   Content-Length: 232, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.821956 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_filters.c(957): [client 15.213.82.149:63010]   Keep-Alive: timeout=5, max=100, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.821965 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_filters.c(957): [client 15.213.82.149:63010]   Connection: Keep-Alive, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.821973 2018] [http:trace4] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\modules\http\http_filters.c(957): [client 15.213.82.149:63010]   Content-Type: text/html; charset=iso-8859-1, referer: http://15.213.91.33:5005/FileUploadServletExample/
[Fri Sep 14 06:01:06.821998 2018] [core:trace6] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\server\core_filters.c(525): [client 15.213.82.149:63010] core_output_filter: flushing because of FLUSH bucket
[Fri Sep 14 06:01:11.823894 2018] [core:trace6] [pid 553648168:tid 577241474279276548] C:\cygwin64\home\hemant\apache-2.4.29\httpd-2.4.29\server\core_filters.c(525): [client 15.213.82.149:63010] core_output_filter: flushing because of FLUSH bucket
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx