Skip to content

Conversation

@shinrich
Copy link
Member

In commit 9b47aa6 we fixed the logic to move from connect timeout to transaction no activity timeout after the new connection had completed. However, there was still a problem with sitting on the connection timeout until the first byte is received from the origin in the case of server connection reuse for GETs (not POST or PUSH). The setup for post requests were setting the inactivity timeout correctly but the set up for gets was not.

This has been running in production and verified.

@shinrich shinrich added this to the 9.0.0 milestone Aug 27, 2018
@shinrich shinrich self-assigned this Aug 27, 2018
@bryancall bryancall changed the title YTSATS-2300: Reset the inactivity timeout when reusing connections Reset the inactivity timeout when reusing connections Aug 27, 2018
server_entry->write_vio = server_entry->vc->do_io_write(this, hdr_length, buf_start);

// Make sure the VCs is on the correct timeouts
server_session->get_netvc()->set_inactivity_timeout(HRTIME_SECONDS(t_state.txn_conf->transaction_no_activity_timeout_out));
Copy link
Contributor

@bryancall bryancall Aug 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we now setting the inactivity timeout multiple times for POST and PUSH?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could move the inactivity_timeout to setup_server_request_api. I think that would avoid the POST/PUSH case. Not sure if that would still hit the transform cases.

@shinrich shinrich force-pushed the another-connect-timeout-fix branch from a859e3b to 3ee2728 Compare September 10, 2018 21:08
@shinrich
Copy link
Member Author

Updated commit to move the timeout reset to a path that should not affect POST/PUSH

@shinrich shinrich merged commit 483b1b3 into apache:master Sep 19, 2018
@bryancall bryancall modified the milestones: 9.0.0, 8.1.0 Mar 27, 2019
@bryancall
Copy link
Contributor

Cherry picked to 8.1.0

@zwoop zwoop modified the milestones: 8.1.0, 8.1.0-nogo Mar 18, 2020
@zwoop zwoop modified the milestones: 8.1.0-nogo, 9.0.0 Mar 26, 2020
@zwoop zwoop modified the milestones: 9.0.0, 8.1.0 Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants