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

Issue 1731047: code review 1731047: net: Add timeout support windows implement (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by vcc
Modified:
14 years, 5 months ago
Reviewers:
CC:
brainman, rsc, golang-dev
Visibility:
Public.

Description

net: Add timeout support windows implement.

Patch Set 1 #

Patch Set 2 : code review 1731047: Add timeout support to net windows implement, please re... #

Patch Set 3 : code review 1731047: Add timeout support to net windows implement, please re... #

Patch Set 4 : code review 1731047: net: Add timeout support windows implement. #

Patch Set 5 : code review 1731047: net: Add timeout support windows implement. #

Patch Set 6 : code review 1731047: net: Add timeout support windows implement. #

Total comments: 1

Patch Set 7 : code review 1731047: net: Add timeout support windows implement. #

Total comments: 8

Patch Set 8 : code review 1731047: net: Add timeout support windows implement. #

Total comments: 7

Patch Set 9 : code review 1731047: net: Add timeout support windows implement. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -19 lines) Patch
M src/pkg/net/fd_windows.go View 1 2 3 4 5 6 7 8 14 chunks +124 lines, -14 lines 0 comments Download
M src/pkg/net/timeout_test.go View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 28
vcc
Hello brainman, golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, vcc), I'd like you to review this change.
14 years, 11 months ago (2010-06-30 08:42:24 UTC) #1
vcc
update code, please take another look.
14 years, 11 months ago (2010-07-16 04:35:54 UTC) #2
brainman
I don't think it is going to work. The problem here is that once we ...
14 years, 11 months ago (2010-07-19 00:53:08 UTC) #3
vcc
On 2010/07/19 00:53:08, brainman wrote: > I don't think it is going to work. The ...
14 years, 11 months ago (2010-07-19 13:57:14 UTC) #4
brainman
On 2010/07/19 13:57:14, vcc wrote: > > I think garbage collector should take care of ...
14 years, 11 months ago (2010-07-20 00:20:34 UTC) #5
vcc
On 2010/07/20 00:20:34, brainman wrote: > > There is no magic. If you expect your ...
14 years, 11 months ago (2010-07-22 06:49:31 UTC) #6
brainman
> Yes, there is no magic, so we need create a magic here <g>. Use ...
14 years, 11 months ago (2010-07-22 06:53:24 UTC) #7
rsc1
leaving brainman as reviewer until this gets sorted out
14 years, 10 months ago (2010-08-03 20:24:37 UTC) #8
vcc
Rewrite to use time.After, please take another look.
14 years, 7 months ago (2010-11-23 13:49:25 UTC) #9
brainman
On 2010/11/23 13:49:25, vcc wrote: > Rewrite to use time.After, please take another look. You ...
14 years, 6 months ago (2010-12-01 07:48:52 UTC) #10
rsc
Windows must have a non-blocking network read that can be combined with WaitForHandle with a ...
14 years, 6 months ago (2010-12-07 18:38:26 UTC) #11
brainman
On 2010/12/07 18:38:26, rsc wrote: > Windows must have a non-blocking network read > that ...
14 years, 6 months ago (2010-12-08 05:49:25 UTC) #12
rsc
I looked some more. I believe the solution here is to put the sockets into ...
14 years, 6 months ago (2010-12-08 17:23:43 UTC) #13
brainman
On 2010/12/08 17:23:43, rsc wrote: > ... via WSAEventSelect ... Yes. This might work, because, ...
14 years, 6 months ago (2010-12-10 03:29:43 UTC) #14
brainman
On 2010/12/08 05:49:25, brainman wrote: > On 2010/12/07 18:38:26, rsc wrote: > > > The ...
14 years, 6 months ago (2010-12-23 02:34:01 UTC) #15
vcc
2010/12/23 <alex.brainman@gmail.com> > On 2010/12/08 05:49:25, brainman wrote: > >> On 2010/12/07 18:38:26, rsc wrote: ...
14 years, 6 months ago (2010-12-23 03:09:59 UTC) #16
vcc
Solution with CancelIO, I think it would be final solution, please take another look.
14 years, 5 months ago (2010-12-29 03:24:53 UTC) #17
brainman
http://codereview.appspot.com/1731047/diff/35001/src/pkg/net/fd_windows.go File src/pkg/net/fd_windows.go (right): http://codereview.appspot.com/1731047/diff/35001/src/pkg/net/fd_windows.go#newcode253 src/pkg/net/fd_windows.go:253: runtime.LockOSThread() I suspect you did that to allow CancelIO ...
14 years, 5 months ago (2010-12-29 04:19:52 UTC) #18
vcc
2010/12/29 <alex.brainman@gmail.com> > > http://codereview.appspot.com/1731047/diff/35001/src/pkg/net/fd_windows.go > File src/pkg/net/fd_windows.go (right): > > > http://codereview.appspot.com/1731047/diff/35001/src/pkg/net/fd_windows.go#newcode253 > src/pkg/net/fd_windows.go:253: ...
14 years, 5 months ago (2010-12-29 14:23:53 UTC) #19
vcc
2010/12/29 Wei guangjing <vcc.163@gmail.com> > 2010/12/29 <alex.brainman@gmail.com> > >> >> http://codereview.appspot.com/1731047/diff/35001/src/pkg/net/fd_windows.go >> File src/pkg/net/fd_windows.go (right): ...
14 years, 5 months ago (2010-12-29 15:33:31 UTC) #20
vcc
run all timeout IO operation in one special goroutine to slove 1 thread 1 connection ...
14 years, 5 months ago (2010-12-31 08:36:32 UTC) #21
brainman
LGTM. Well done. In my opinion fd_windows.go is a mess. But I'm happy to submit, ...
14 years, 5 months ago (2011-01-07 05:35:17 UTC) #22
vcc
Please take another look. http://codereview.appspot.com/1731047/diff/43001/src/pkg/net/fd_windows.go File src/pkg/net/fd_windows.go (right): http://codereview.appspot.com/1731047/diff/43001/src/pkg/net/fd_windows.go#newcode240 src/pkg/net/fd_windows.go:240: READ = 0 On 2011/01/07 ...
14 years, 5 months ago (2011-01-10 05:16:15 UTC) #23
rsc
http://codereview.appspot.com/1731047/diff/49001/src/pkg/net/fd_windows.go File src/pkg/net/fd_windows.go (right): http://codereview.appspot.com/1731047/diff/49001/src/pkg/net/fd_windows.go#newcode13 src/pkg/net/fd_windows.go:13: "runtime" sort import list http://codereview.appspot.com/1731047/diff/49001/src/pkg/net/fd_windows.go#newcode220 src/pkg/net/fd_windows.go:220: if delta > ...
14 years, 5 months ago (2011-01-11 17:06:29 UTC) #24
brainman
http://codereview.appspot.com/1731047/diff/49001/src/pkg/net/fd_windows.go File src/pkg/net/fd_windows.go (right): http://codereview.appspot.com/1731047/diff/49001/src/pkg/net/fd_windows.go#newcode261 src/pkg/net/fd_windows.go:261: func doTimeoutIO() { On 2011/01/11 17:06:29, rsc wrote: > ...
14 years, 5 months ago (2011-01-11 23:38:12 UTC) #25
vcc
PTAL. http://codereview.appspot.com/1731047/diff/49001/src/pkg/net/fd_windows.go File src/pkg/net/fd_windows.go (right): http://codereview.appspot.com/1731047/diff/49001/src/pkg/net/fd_windows.go#newcode13 src/pkg/net/fd_windows.go:13: "runtime" On 2011/01/11 17:06:29, rsc wrote: > sort ...
14 years, 5 months ago (2011-01-12 04:29:54 UTC) #26
rsc
LGTM
14 years, 5 months ago (2011-01-19 19:49:05 UTC) #27
rsc
14 years, 5 months ago (2011-01-19 19:49:27 UTC) #28
*** Submitted as 55be663c1b9c ***

net: implement windows timeout

R=brainman, rsc
CC=golang-dev
http://codereview.appspot.com/1731047

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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