Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give the in-progress code a SNAPSHOT version number. #2

Merged
merged 1 commit into from
Jul 23, 2012

Conversation

swankjesse
Copy link
Collaborator

No description provided.

pforhan added a commit that referenced this pull request Jul 23, 2012
Give the in-progress code a SNAPSHOT version number.
@pforhan pforhan merged commit 4e80e46 into master Jul 23, 2012
JakeWharton added a commit that referenced this pull request May 6, 2013
insights-service-dev1 pushed a commit to InsightsDev-dev/okhttp-1 that referenced this pull request Nov 8, 2016
amirlivneh added a commit to amirlivneh/okhttp that referenced this pull request Dec 25, 2018
There are usually 2 requests sent to '/b' during the test:
square#1 on the busted connection, attempting reuse
square#2 on a new connection

On successful runs, the server records square#1 and then square#2 and adds them to the queue in that order.

On failed runs, the server starts reading request square#1 before square#2, but there is a context switch, and it finishes reading square#2 before square#1, recording them in that order. Since square#1 is the last to be recorded, the test incorrectly uses it to assert that the sequence number is 0. Since square#1 was the second to be received on the busted connection, it has a sequence number of 1 so the test fails.

The fix asserts that either square#1 or square#2 has a sequence number of 0.
amirlivneh added a commit to amirlivneh/okhttp that referenced this pull request Dec 25, 2018
There are usually 2 requests sent to '/b' during the test:
square#1 on the busted connection, attempting reuse
square#2 on a new connection

On successful runs, the server records square#1 and then square#2 and adds them to the queue in that order.

On failed runs, the server starts reading request square#1 before square#2, but there is a context switch, and it finishes reading square#2 before square#1, recording them in that order. Since square#1 is the last to be recorded, the test incorrectly uses it to assert that the sequence number is 0. Since square#1 was the second to be received on the busted connection, it has a sequence number of 1 so the test fails.

The fix asserts that either square#1 or square#2 has a sequence number of 0.
amirlivneh added a commit to amirlivneh/okhttp that referenced this pull request Dec 25, 2018
There are usually 2 requests sent to '/b' during the test:
square#1 on the busted connection, attempting reuse
square#2 on a new connection

On successful runs, the server recorded square#1 and then square#2 and added them to the queue in that order.

On failed runs, the server started reading request square#1 before square#2, but there was a context switch, and it finished reading square#2 before square#1, recording them in that order. Since square#1 was the last to be recorded, the test incorrectly used it to assert that the sequence number is 0. Since square#1 was the second to be received on the busted connection, it had a sequence number of 1 so the test failed.

The fix removes the assumption that we know the order in which square#1 and square#2 has been recorded.
amirlivneh added a commit to amirlivneh/okhttp that referenced this pull request Dec 25, 2018
There are usually 2 requests sent to '/b' during the test:
square#1 on the busted connection, attempting reuse
square#2 on a new connection

On successful runs, the server recorded square#1 and then square#2 and added them to the queue in that order.

On failed runs, the server started reading request square#1 before square#2, but there was a context switch, and it finished reading square#2 before square#1, recording them in that order. Since square#1 was the last to be recorded, the test incorrectly used it to assert that the sequence number is 0. Since square#1 was the second to be received on the busted connection, it had a sequence number of 1 so the test failed.

The fix removes the assumption that square#2 is the last to be recorded.

Fixes square#4140.
amirlivneh added a commit to amirlivneh/okhttp that referenced this pull request Dec 25, 2018
There are usually 2 requests sent to '/b' during the test:
square#1 on the busted connection, attempting reuse
square#2 on a new connection

On successful runs, the server recorded square#1 and then square#2 and added them to the queue in that order.

On failed runs, the server started reading request square#1 before square#2, but there was a context switch, and it finished reading square#2 before square#1, recording them in that order. Since square#1 was the last to be recorded, the test incorrectly used it to assert that the sequence number was 0. Since square#1 was the second to be received on the busted connection, it had a sequence number of 1 so the test failed.

The fix removes the assumption that square#2 is the last to be recorded.

Fixes square#4140.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants