=encoding utf-8 =head1 Name stream_processing - How nginx processes a TCP/UDP session =head1 A TCPEUDP session from a client is processed in successive steps called B: =over =item C The first phase after accepting a client connection. The L module is invoked at this phase. =item C Preliminary check for access. The L and L modules are invoked at this phase. =item C Client access limitation before actual data processing. At this phase, the L module is invoked, for L, the L directive is invoked. =item C TLSESSL termination. The L module is invoked at this phase. =item C Reading initial bytes of data into the L to allow modules such as L analyze the data before its processing. For L, the L directive is invoked at this phase. =item C Mandatory phase where data is actually processed, usually L to L servers, or a specified value is L to a client. For L, the L directive is invoked at this phase. =item C The final phase where the result of a client session processing is recorded. The L module is invoked at this phase. =back