Bugzilla – Attachment 3031 Details for
Bug 2750
Unexpected "Couldn't read packet: Connection reset by peer" message
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
friendlier fatal for ECONNRESET
bz2750.diff (text/plain), 516 bytes, created by
Damien Miller
on 2017-08-11 14:12:15 AEST
(
hide
)
Description:
friendlier fatal for ECONNRESET
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2017-08-11 14:12:15 AEST
Size:
516 bytes
patch
obsolete
>diff --git a/sftp-client.c b/sftp-client.c >index cdc6730..5bc1010 100644 >--- a/sftp-client.c >+++ b/sftp-client.c >@@ -126,7 +126,7 @@ get_msg(struct sftp_conn *conn, struct sshbuf *m) > fatal("%s: buffer error: %s", __func__, ssh_err(r)); > if (atomicio6(read, conn->fd_in, p, 4, > conn->limit_kbps > 0 ? sftpio : NULL, &conn->bwlimit_in) != 4) { >- if (errno == EPIPE) >+ if (errno == EPIPE || errno == ECONNRESET) > fatal("Connection closed"); > else > fatal("Couldn't read packet: %s", strerror(errno));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2750
:
3026
|
3027
| 3031