]> Cypherpunks repositories - gostls13.git/commit
syscall, net: make deadline changes affect blocked read/write calls on nacl
authorBrad Fitzpatrick <bradfitz@golang.org>
Sat, 15 Oct 2016 15:56:51 +0000 (16:56 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 17 Oct 2016 05:53:00 +0000 (05:53 +0000)
commit7a7ea01c65e8366af277b956dc8ccf0601727172
treec91c8a1c4043b4eadb53f161c6453d853076901b
parentcd2c9df7612795cad5b56cabe5ec29c7771db5fe
syscall, net: make deadline changes affect blocked read/write calls on nacl

Flesh out nacl's fake network system to match how all the other
platforms work: all other systems' SetReadDeadline and
SetWriteDeadline affect currently-blocked read & write calls.
This was documented in golang.org/cl/30164 because it was the status
quo and existing packages relied on it. (notably the net/http package)

And add a test.

Change-Id: I074a1054dcabcedc97b173dad5e827f8babf7cfc
Reviewed-on: https://go-review.googlesource.com/31178
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/net_test.go
src/syscall/net_nacl.go