Files
crypto/ssh
Fazlul Shahriar b544559bb6 ssh/agent: fix TestServerResponseTooLarge on Plan 9
First, modify the test to report a better error by waiting for the
Marshal+Write goroutine to finish before returning from the test. If we
return too early, a failure inside that goroutine can generate a panic.

Second, we workaround plan9 not returning the actual number of bytes
written on the connection in case of a hangup (due to closed
connection). I've verified that syscall.Pwrite returns -1 on hangup in
this particular case even when some data did get written.

Fixes golang/go#35888

Change-Id: I7998cff926295f0d577b125c137021a9adc1be5a
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/209298
Reviewed-by: Han-Wen Nienhuys <hanwen@google.com>
Run-TryBot: Han-Wen Nienhuys <hanwen@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-11-28 16:05:24 +00:00
..
2018-10-15 02:39:09 +00:00
2014-04-09 13:57:52 -07:00
2017-12-18 18:48:59 +00:00
2018-10-29 02:12:03 +00:00
2019-11-08 23:12:17 +00:00
2018-10-29 02:12:03 +00:00
2017-11-28 17:48:09 +00:00
2017-11-28 19:40:09 +00:00
2014-04-09 13:57:52 -07:00
2016-07-06 16:40:51 +00:00