|
Lines 126-132
get_msg(struct sftp_conn *conn, struct sshbuf *m)
Link Here
|
| 126 |
fatal("%s: buffer error: %s", __func__, ssh_err(r)); |
126 |
fatal("%s: buffer error: %s", __func__, ssh_err(r)); |
| 127 |
if (atomicio6(read, conn->fd_in, p, 4, |
127 |
if (atomicio6(read, conn->fd_in, p, 4, |
| 128 |
conn->limit_kbps > 0 ? sftpio : NULL, &conn->bwlimit_in) != 4) { |
128 |
conn->limit_kbps > 0 ? sftpio : NULL, &conn->bwlimit_in) != 4) { |
| 129 |
if (errno == EPIPE) |
129 |
if (errno == EPIPE || errno == ECONNRESET) |
| 130 |
fatal("Connection closed"); |
130 |
fatal("Connection closed"); |
| 131 |
else |
131 |
else |
| 132 |
fatal("Couldn't read packet: %s", strerror(errno)); |
132 |
fatal("Couldn't read packet: %s", strerror(errno)); |