Mailing List Archive

Issue 1335 in cherokee: reverse proxy is broken in dev branch
Status: Accepted
Owner: alobbs
Labels: Type-Defect Priority-Medium Component-Logic Usability

New issue 1335 by ste...@konink.de: reverse proxy is broken in dev branch
http://code.google.com/p/cherokee/issues/detail?id=1335

What steps will reproduce the problem?
1. try to do some requests on the dev branch to a remote server
2. notice the load of cherokee-worker goes through the roof

Strace;

13129 futex(0x20c4c10, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
13128 futex(0x20c4c10, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
13127 futex(0x20c4c10, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
13126 futex(0x20c4c10, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
13125 epoll_ctl(10, EPOLL_CTL_DEL, 3, {0, {u32=3, u64=3}} <unfinished ...>
13122 epoll_wait(7, <unfinished ...>
13125 <... epoll_ctl resumed> ) = 0
13122 <... epoll_wait resumed> {}, 406, 0) = 0
13125 epoll_ctl(10, EPOLL_CTL_DEL, 4, {0, {u32=4, u64=4}} <unfinished ...>
13122 recvfrom(17, <unfinished ...>
13125 <... epoll_ctl resumed> ) = 0
13122 <... recvfrom resumed> 0x21942b0, 2048, 0, 0, 0) = -1 EAGAIN
(Resource temporarily unavailable)
13125 futex(0x20c4c10, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
13122 epoll_ctl(7, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=3,
u64=3}} <unfinished ...>
13125 <... futex resumed> ) = 1
13122 <... epoll_ctl resumed> ) = 0
13125 futex(0x20c4c10, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
13122 epoll_ctl(7, EPOLL_CTL_ADD, 4, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=4,
u64=4}}) = 0
13122 epoll_wait(7, {}, 406, 0) = 0
13122 epoll_ctl(7, EPOLL_CTL_DEL, 3, {0, {u32=3, u64=3}}) = 0
13122 epoll_ctl(7, EPOLL_CTL_DEL, 4, {0, {u32=4, u64=4}}) = 0
13122 futex(0x20c4c10, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
13131 epoll_ctl(16, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=3,
u64=3}} <unfinished ...>
13130 futex(0x20c4c10, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
13129 <... futex resumed> ) = 0
13124 epoll_wait(9, <unfinished ...>
13131 <... epoll_ctl resumed> ) = 0
13123 futex(0x20c4c10, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
13131 epoll_ctl(16, EPOLL_CTL_ADD, 4, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=4,
u64=4}} <unfinished ...>
13129 futex(0x20c4c10, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
13131 <... epoll_ctl resumed> ) = 0
13122 <... futex resumed> ) = 1
13131 epoll_wait(16, <unfinished ...>
13122 recvfrom(17, 0x21942b0, 2048, 0, 0, 0) = -1 EAGAIN (Resource
temporarily unavailable)
13122 epoll_wait(7, {}, 406, 0) = 0
13122 recvfrom(17, 0x21942b0, 2048, 0, 0, 0) = -1 EAGAIN (Resource
temporarily unavailable)
13122 epoll_wait(7, {}, 406, 0) = 0
13122 recvfrom(17, 0x21942b0, 2048, 0, 0, 0) = -1 EAGAIN (Resource
temporarily unavailable)
13122 epoll_wait(7, {}, 406, 0) = 0
13122 recvfrom(17, 0x21942b0, 2048, 0, 0, 0) = -1 EAGAIN (Resource
temporarily unavailable)

(and on an on)

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1335 in cherokee: reverse proxy is broken in dev branch [ In reply to ]
Comment #1 on issue 1335 by ste...@konink.de: reverse proxy is broken in
dev branch
http://code.google.com/p/cherokee/issues/detail?id=1335

Problem is 99.9% in Keep-Alive support. With keepalive disabled in the
proxy configuration the load is gone. But more interestingly it actually
still shows up in the TRACE;

handler_proxy.c:1870 ( cherokee_handler_proxy_free): Did not get all,
turning keepalive off

This is triggered by the 'got_all' variable.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1335 in cherokee: reverse proxy is broken in dev branch [ In reply to ]
Comment #2 on issue 1335 by ste...@konink.de: reverse proxy is broken in
dev branch
http://code.google.com/p/cherokee/issues/detail?id=1335

Guestimation:

handler_proxy.c: 1118 - 1132

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1335 in cherokee: reverse proxy is broken in dev branch [ In reply to ]
Updates:
Labels: Milestone-NewEvents

Comment #3 on issue 1335 by ste...@konink.de: reverse proxy is broken in
dev branch
http://code.google.com/p/cherokee/issues/detail?id=1335

(No comment was entered for this change.)

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev