Skip to content

Commit 240bb69

Browse files
committed
Remove unnecesary HttpSM handler call with VC_EVENT_ERROR
1 parent 36a8cd5 commit 240bb69

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

proxy/http2/Http2Stream.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ Http2Stream::initiating_close()
460460

461461
// This should result in do_io_close or release being called. That will schedule the final
462462
// kill yourself signal
463-
// Send the SM the EOS signal if there are no active VIO's to signal
464463
// We are sending signals rather than calling the handlers directly to avoid the case where
465464
// the HttpTunnel handler causes the HttpSM to be deleted on the stack.
466465
bool sent_write_complete = false;
@@ -487,9 +486,6 @@ Http2Stream::initiating_close()
487486
Http2StreamDebug("send EOS to read cont");
488487
read_event = send_tracked_event(read_event, VC_EVENT_EOS, &read_vio);
489488
}
490-
} else if (_sm) {
491-
SCOPED_MUTEX_LOCK(lock, _sm->mutex, this_ethread());
492-
_sm->handleEvent(VC_EVENT_ERROR);
493489
} else if (!sent_write_complete) {
494490
// Transaction is already gone or not started. Kill yourself
495491
do_io_close();

0 commit comments

Comments
 (0)