https://bz.apache.org/bugzilla/show_bug.cgi?id=65686

--- Comment #6 from Gary S <g...@cpanel.net> ---
Interesting discovery. a breakpoint on sendfile64/sendfile without SSL (in a
virtualhost), sendfile is working: 

(gdb) c
Continuing.

Breakpoint 1, sendfile64 () at ../sysdeps/unix/syscall-template.S:81
81      T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) c
Continuing.

#1  0x00007f80c891e5af in apr_socket_sendfile (sock=0x55d4ecb81a20,
file=0x55d4ecd3c4e0, hdtr=0x7f80c8b33e40 <no_hdtr>, offset=<optimized out>,
len=0x7ffd49aa0c08, flags=<optimized out>)
    at network_io/unix/sendrecv.c:333
#2  0x000055d4eb2b3185 in sendfile_nonblocking (s=0x55d4ecb81a20,
bucket=0x55d4ecd20d48, ctx=0x55d4ecb82150, c=0x55d4ecb81c10) at
core_filters.c:828
#3  0x000055d4eb2b296d in send_brigade_nonblocking (s=0x55d4ecb81a20,
bb=0x55d4ecd3c5e0, ctx=0x55d4ecb82150, c=0x55d4ecb81c10) at core_filters.c:660
#4  0x000055d4eb2b243d in ap_core_output_filter (f=0x55d4ecb82098,
new_bb=0x55d4ecd3c5e0) at core_filters.c:505
#5  0x000055d4eb28fb3c in ap_pass_brigade (next=0x55d4ecb82098,
bb=0x55d4ecd3c5e0) at util_filter.c:590
#6  0x000055d4eb2e029f in ap_http_outerror_filter (f=0x55d4ecd2b298,
b=0x55d4ecd3c5e0) at http_filters.c:1907
#7  0x000055d4eb28fb3c in ap_pass_brigade (next=0x55d4ecd2b298,
bb=0x55d4ecd3c5e0) at util_filter.c:590
#8  0x000055d4eb2df2d0 in ap_http_header_filter (f=0x55d4ecd2b270,
b=0x55d4ecd3c5e0) at http_filters.c:1541
#9  0x000055d4eb28fb3c in ap_pass_brigade (next=0x55d4ecd2b270,
bb=0x55d4ecd3c5e0) at util_filter.c:590
#10 0x000055d4eb2996e0 in ap_content_length_filter (f=0x55d4ecd2b248,
b=0x55d4ecd3c5e0) at protocol.c:1956


I confirmed this with an strace as well:

# strace -f $(ps auxfww | egrep [h]ttpd | awk '{print $2}' | sed 's/^/-p/g')
2>&1 -e sendfile64,sendfile
strace: Process 17680 attached
sendfile(13, 17, [0] => [77416], 83306) = 77416
sendfile(13, 17, [77416], 5890)         = -1 EAGAIN (Resource temporarily
unavailable)
sendfile(13, 17, [77416], 5890)         = -1 EAGAIN (Resource temporarily
unavailable)
sendfile(13, 17, [77416] => [83306], 5890) = 5890

Reproduction steps I'm using to demonstrate this behavior, Create a large
index.html, ie: 

php -i > index.html 

Use curl locally / remotely (or a browser) 

curl -k https://virtualhost/index.html <-- self signed certificate host

This works, though:

curl http://virtualhost/index.htm

Do you still need the dump_brigade(bb) with the above inforation?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to