something odd in proxy path when backend has

#0  0x00007f16f51b92e1 in apr_table_clear (t=0x0) at tables/apr_tables.c:467
467         t->a.nelts = 0;
(gdb) where
#0  0x00007f16f51b92e1 in apr_table_clear (t=0x0) at tables/apr_tables.c:467
#1  0x0000000000483bfc in read_chunked_trailers (ctx=0x7f16ac0125c0,
f=0x7f16ac012378, b=0x7f16ac00eec8, merge=0) at http_filters.c:198
#2  0x000000000048493d in ap_http_filter (f=0x7f16ac012378,
b=0x7f16ac00eec8, mode=AP_MODE_READBYTES, block=APR_NONBLOCK_READ,
readbytes=8192) at http_filters.c:448
#3  0x0000000000439d8e in ap_get_brigade (next=0x7f16ac012378,
bb=0x7f16ac00eec8, mode=AP_MODE_READBYTES, block=APR_NONBLOCK_READ,
readbytes=8192) at util_filter.c:553
#4  0x00007f16edb39794 in ap_proxy_http_process_response
(p=0x7f16ac004908, r=0x7f16ac004980, backend_ptr=0x7f16ea0c1a30,
worker=0x10154c8, conf=0x1015238,
    server_portstr=0x7f16ea0c1a70 "") at mod_proxy_http.c:1693
#5  0x00007f16edb3aaaa in proxy_http_handler (r=0x7f16ac004980,
worker=0x10154c8, conf=0x1015238, url=0x7f16ac0063e6
"http://127.0.0.1:81/trailer.asis";, proxyname=0x0, proxyport=0)
    at mod_proxy_http.c:2049
#6  0x00007f16edf51858 in proxy_run_scheme_handler (r=0x7f16ac004980,
worker=0x10154c8, conf=0x1015238, url=0x7f16ac0063e6
"http://127.0.0.1:81/trailer.asis";, proxyhost=0x0,
    proxyport=0) at mod_proxy.c:2798
#7  0x00007f16edf4c650 in proxy_handler (r=0x7f16ac004980) at mod_proxy.c:1157
#8  0x0000000000463ad1 in ap_run_handler (r=0x7f16ac004980) at config.c:169
#9  0x0000000000464524 in ap_invoke_handler (r=0x7f16ac004980) at config.c:433
#10 0x00000000004827ba in ap_process_async_request (r=0x7f16ac004980)
at http_request.c:317
#11 0x000000000047ebbb in ap_process_http_async_connection
(c=0x7f16e40b3790) at http_core.c:143
#12 0x000000000047eda8 in ap_process_http_connection
(c=0x7f16e40b3790) at http_core.c:228
#13 0x0000000000471fc9 in ap_run_process_connection (c=0x7f16e40b3790)
at connection.c:41
#14 0x00007f16ecea8f2c in process_socket (thd=0x111da28,
p=0x7f16e40b3488, sock=0x7f16e40b3500, cs=0x7f16e40b3708,
my_child_num=0, my_thread_num=0) at event.c:1077
#15 0x00007f16eceabd98 in worker_thread (thd=0x111da28,
dummy=0x7f16e40008c0) at event.c:2141
#16 0x00007f16f51d1f2a in dummy_worker (opaque=0x111da28) at
threadproc/unix/thread.c:142
#17 0x00007f16f4f8c182 in start_thread (arg=0x7f16ea0c2700) at
pthread_create.c:312

(gdb) print *r
$1 = {pool = 0x7f16ac010a48, connection = 0x7f16ac008bb0, server =
0xfe2d08, next = 0x0, prev = 0x0, main = 0x0, the_request = 0x0,
assbackwards = 0, proxyreq = 3, header_only = 0,
  proto_num = 0, protocol = 0x0, hostname = 0x0, request_time =
1405432560125880, status_line = 0x0, status = 200, method_number = 0,
method = 0x0, allowed = 0,
  allowed_xmethods = 0x0, allowed_methods = 0x0, sent_bodyct = 0,
bytes_sent = 0, mtime = 0, range = 0x0, clength = 0, chunked = 0,
read_body = 0, read_chunked = 0,
  expecting_100 = 0, kept_body = 0x0, body_table = 0x0, remaining = 0,
read_length = 0, headers_in = 0x0, headers_out = 0x7f16ac011938,
err_headers_out = 0x7f16ac011d20,
  subprocess_env = 0x7f16ac011360, notes = 0x7f16ac011ec0,
content_type = 0x0, handler = 0x0, content_encoding = 0x0,
content_languages = 0x0, vlist_validator = 0x0, user = 0x0,
  ap_auth_type = 0x0, unparsed_uri = 0x0, uri = 0x0, filename = 0x0,
canonical_filename = 0x0, path_info = 0x0, args = 0x0, used_path_info
= 0, eos_sent = 0, per_dir_config = 0x0,
  request_config = 0x7f16ac012060, log = 0xfe2d28, log_id = 0x0,
htaccess = 0x0, output_filters = 0x7f16ac00cea8, input_filters =
0x7f16ac012378,
  proto_output_filters = 0x7f16ac00cea8, proto_input_filters =
0x7f16ac012378, no_cache = 0, no_local_copy = 0, invoke_mtx = 0x0,
parsed_uri = {scheme = 0x0, hostinfo = 0x0,
    user = 0x0, password = 0x0, hostname = 0x0, port_str = 0x0, path =
0x0, query = 0x0, fragment = 0x0, hostent = 0x0, port = 0,
is_initialized = 0, dns_looked_up = 0,
    dns_resolved = 0}, finfo = {pool = 0x0, valid = 0, protection = 0,
filetype = APR_NOFILE, user = 0, group = 0, inode = 0, device = 0,
nlink = 0, size = 0, csize = 0, atime = 0,
    mtime = 0, ctime = 0, fname = 0x0, name = 0x0, filehand = 0x0},
useragent_addr = 0x7f16ac008ab0, useragent_ip = 0x7f16ac008ca0
"127.0.0.1", trailers_in = 0x0,
  trailers_out = 0x7f16ac011b80}



I use mod_asis + proxy
====
Status: 200 OK
Content-Type: text/plain
Transfer-Encoding: chunked

1
a
0

Foo: quux

====

On Wed, Jun 25, 2014 at 1:23 PM, Edward Lu <[email protected]> wrote:
> Patch for trunk as well
>
>
> On Wed, Jun 25, 2014 at 1:20 PM, Edward Lu <[email protected]> wrote:
>>
>> Wanted to follow up on this thread again; here's my latest patch on 2.2.x
>> that takes some ideas from Joe's patch. I also merge the trailers into the
>> headers after reading them now, instead of directly appending them into the
>> headers.
>>
>> I will leave the PROXYREQ_RESPONSE case to someone else, as I still don't
>> fully understand it.
>>
>>
>> On Thu, May 15, 2014 at 3:20 PM, Yann Ylavic <[email protected]> wrote:
>>>
>>> I did not realize your mail is 8 days old, I just received it -- gmail
>>> is having fun these days :(
>>> Sorry for this misunderstanding and the reply that goes along...
>>>
>>> Regards,
>>> Yann.
>>
>>
>



-- 
Eric Covener
[email protected]

Reply via email to