Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/proxy/http/HttpSM.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,13 @@ HttpSM::state_raw_http_server_open(int event, void *data)
// use this value just to get around other values
t_state.hdr_info.response_error = HttpTransact::STATUS_CODE_SERVER_ERROR;
break;

case EVENT_INTERVAL:
// If we get EVENT_INTERNAL it means that we moved the transaction
// to a different thread in do_http_server_open. Since we didn't
// do any of the actual work in do_http_server_open, we have to
// go back and do it now.
do_http_server_open(true);
return 0;
default:
ink_release_assert(0);
break;
Expand Down Expand Up @@ -1842,6 +1848,11 @@ HttpSM::state_http_server_open(int event, void *data)
}
return 0;
}
case EVENT_INTERVAL: // Delayed call from another thread
if (server_txn == nullptr) {
do_http_server_open();
}
break;
default:
Error("[HttpSM::state_http_server_open] Unknown event: %d", event);
ink_release_assert(0);
Expand Down