Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(93)

Issue 106950044: code review 106950044: net: try to deflake TestVariousDeadlines4Proc

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by rsc
Modified:
11 years ago
Reviewers:
bradfitz
CC:
bradfitz, golang-codereviews
Visibility:
Public.

Description

net: try to deflake TestVariousDeadlines4Proc Timeouts are only checked when the non-blocking network read returns EAGAIN. If the writer is racing far enough ahead of the reader, it is possible that the reader may never catch up, and therefore never reach the timeout check. This theory is supported by the fact that it is always the longer timeouts that fail in the build failures. They give the writer more time to get ahead. Sleeping in the writer should give the reader time to catch up.

Patch Set 1 #

Patch Set 2 : diff -r ef8878dbed3b https://code.google.com/p/go #

Patch Set 3 : diff -r ef8878dbed3b https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M src/pkg/net/timeout_test.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello bradfitz, bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 7 months ago (2014-06-11 01:00:30 UTC) #1
bradfitz
LGTM Little comment in the code might be nice too. On Jun 10, 2014 6:00 ...
11 years, 7 months ago (2014-06-11 01:18:10 UTC) #2
gobot
11 years ago (2014-12-19 05:09:41 UTC) #3
R=close

To the author of this CL:

The Go project has moved to Gerrit Code Review.

If this CL should be continued, please see the latest version of
https://golang.org/doc/contribute.html for instructions on
how to set up Git and the Go project's Gerrit codereview plugin,
and then create a new change with your current code.

If there has been discussion on this CL, please give a link to it
(golang.org/cl/106950044 is best) in the description in your
new CL.

Thanks very much.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b