You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "bneradt (via GitHub)" <gi...@apache.org> on 2025/04/28 15:06:33 UTC

Re: [I] Crash HttpSM::setup_cache_write_transfer while handling redirect [trafficserver]

bneradt commented on issue #11700:
URL: https://github.com/apache/trafficserver/issues/11700#issuecomment-2835567188

   The following patch provided by @JosiahWI makes things stable:
   
   ```patch
   
   diff --git a/src/proxy/http/HttpSM.cc b/src/proxy/http/HttpSM.cc
   index a54cc7ccc..46c50b20d 100644
   --- a/src/proxy/http/HttpSM.cc
   +++ b/src/proxy/http/HttpSM.cc
   @@ -6460,6 +6460,7 @@ HttpSM::perform_cache_write_action()
        // Write close deletes the old alternate
        cache_sm.close_write();
        cache_sm.close_read();
   +    t_state.cache_info.write_lock_state = HttpTransact::CACHE_WL_INIT;
        break;
      }
    
   @@ -6518,6 +6519,7 @@ HttpSM::issue_cache_update()
      }
      // Now close the write which commits the update
      cache_sm.close_write();
   +  t_state.cache_info.write_lock_state = HttpTransact::CACHE_WL_INIT;
    }
    
    int
   ```


-- 
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: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org