Skip to content

Commit 5ccc4dd

Browse files
committed
make clang-analyzer happy
1 parent b10b4c0 commit 5ccc4dd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

proxy/http/HttpSM.cc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3656,13 +3656,14 @@ HttpSM::tunnel_handler_post_ua(int event, HttpTunnelProducer *p)
36563656

36573657
// Now that we have communicated the post body, turn off the inactivity timeout
36583658
// until the server starts sending data back
3659-
if (ua_txn && t_state.hdr_info.request_content_length > 0) {
3660-
ua_txn->cancel_inactivity_timeout();
3659+
if (ua_txn) {
3660+
if (t_state.hdr_info.request_content_length > 0) {
3661+
ua_txn->cancel_inactivity_timeout();
3662+
}
3663+
// Initiate another read to catch aborts
3664+
ua_entry->vc_handler = &HttpSM::state_watch_for_client_abort;
3665+
ua_entry->read_vio = p->vc->do_io_read(this, INT64_MAX, ua_txn->get_reader()->mbuf);
36613666
}
3662-
3663-
// Initiate another read to catch aborts
3664-
ua_entry->vc_handler = &HttpSM::state_watch_for_client_abort;
3665-
ua_entry->read_vio = p->vc->do_io_read(this, INT64_MAX, ua_txn->get_reader()->mbuf);
36663667
break;
36673668
default:
36683669
ink_release_assert(0);

0 commit comments

Comments
 (0)