#20458: uhttpd issue in handling of more than 'max_requests' concurrent POST
requests
------------------------------------+-----------------------------------
Reporter: rahjai@… | Owner: developers
Type: defect | Status: new
Priority: high | Milestone: Barrier Breaker 14.07
Component: packages | Version: Barrier Breaker 14.07
Keywords: uhttpd concurrent POST |
------------------------------------+-----------------------------------
I am facing an issue with more than 3 (max_requests set to 3) concurrent
POST requests. If uhttpd receives 4 concurrent POSt requests, it calls our
cgi process correctly for first 3 requests. It keeps 4th request queued.
When it calls our CGI process for 4th request, it doesn't send the request
body in 'stdin' to CGI process. Though content-length is received
correctly by our CGI process. This causes, CGI process to wait to 'fread'.
uhttpd then timeouts after 60 second (script_timeout).
Please see our CGI program attached. Deploy that as CGI process in OpenWrt
router. And run attached test script from your host machine to send
multiple concurrent requests as below from terminal:
for i in {1..4}; do ./mycgi.sh ;done
--
Ticket URL: <https://dev.openwrt.org/ticket/20458>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets