bneradt opened a new pull request, #13523:
URL: https://github.com/apache/trafficserver/pull/13523

   HttpSM::state_watch_for_client_abort reached past the transaction to
   _ua.get_txn()->get_netvc() to half close the client read side on an early
   EOS. For HTTP/2 and HTTP/3 that NetVConnection is shared by every stream
   on the connection, so a single aborted stream stopped the session from
   reading frames for all of the others. Route the shutdown through the
   transaction instead: Http2Stream and HQTransaction already implement
   do_io_shutdown() as a deliberate no-op for exactly this reason, and
   HTTP/1.x is unaffected because ProxyTransaction forwards to the session's
   NetVConnection.
   
   This is the remaining half of #12529. That change was written to address
   two regressions from #12502, the second being "HTTP/2 connection is
   closed if a stream is reset even if other streams are alive", with the
   stated approach of calling ProxyTransaction::do_io_shutdown() instead of
   NetVConnection::do_io_shutdown(). It converted the two branches it added
   but left the pre-existing IO_SHUTDOWN_READ branch calling the
   NetVConnection directly, so the connection-wide shutdown survived for the
   case where the tunnel still has a consumer besides the client. A response
   transform reaches that case readily: the transform stage runs the whole
   body before anything is written back, so the stream has no write of its
   own and a client reset arrives as an EOS on the stream's read VIO.
   
   Clearing the session's read VIO buffer is not inert, because
   Http2CommonSession still holds that VIO and re-enables it every 128
   frames through HTTP2_SESSION_EVENT_REENABLE. A release build then takes
   the ntodo() <= 0 path in net_read_io and the connection stalls silently,
   failing every in-flight stream; a debug build aborts on
   SSLNetVConnection's `ink_assert(buf.writer())`, the assertion reported
   in #9448.
   
   Co-Authored-By: Claude Opus 5 <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to