commit | b544559bb6d1b5c62fba4af5e843ff542174f079 | [log] [tgz] |
---|---|---|
author | Fazlul Shahriar <fshahriar@gmail.com> | Thu Nov 28 01:18:39 2019 -0500 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Thu Nov 28 16:05:24 2019 +0000 |
tree | ab8e14c8ebe710d934ab6156aa4b8a96d1a828fc | |
parent | ac88ee75c92c889b97e05591e9a39b6480c538b3 [diff] |
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>
This repository holds supplementary Go cryptography libraries.
The easiest way to install is to run go get -u golang.org/x/crypto/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/crypto
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the crypto repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.
Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.