Checkout
Thomas J. Donovan
committed
on 23 Oct
The process_connection hook for mod_ftp must run before the process_connection
hook(s) for mod_http2 because http2 attempts a 24-byte specul… Show more
The process_connection hook for mod_ftp must run before the process_connection

hook(s) for mod_http2 because http2 attempts a 24-byte speculative read.  FTP

connections don't send headers, so mod_http2 hangs until this read times out.

http2's hook cannot be registered as a successor to ftp's because there are two mod_http2

process_connection hook functions. This change makes  mod_ftp register as APR_HOOK_FIRST

and before mod_ssl & mod_reqtimeout to ensure that it runs before any other

protocol handlers.

Show less