Github user oknet commented on the issue:

    https://github.com/apache/trafficserver/issues/1412
  
    Maybe I found the reason:
    
    ```
    3480 int
    3481 HttpSM::tunnel_handler_post_ua(int event, HttpTunnelProducer *p)
    3482 {
    3483   STATE_ENTER(&HttpSM::tunnel_handler_post_ua, event);
    3484   client_request_body_bytes = p->init_bytes_done + p->bytes_read;
    3485   int64_t alloc_index, nbytes;
    3486   IOBufferReader *buf_start;
    3487 
    3488   switch (event) {
    3489   case VC_EVENT_INACTIVITY_TIMEOUT:
    3490   case VC_EVENT_ACTIVE_TIMEOUT:
    ...
    3520       p->vc->do_io_write(this, nbytes, buf_start);
    3521       p->vc->do_io_shutdown(IO_SHUTDOWN_READ);
    3522       return 0;   // ----> we do not reset vc's timeout
    3523     }
    ```
    
    InactivityCop will callback again in the next second and the default httpsm 
handler is tunnel_handler_post().
    
    I think we should handle TIMEOUT event in tunnel_handler_post() since the 
timeout event get from ua_session.
    
    I will have a details analysis on it and create a PR to fix this issue.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to