File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -129,18 +129,19 @@ public byte[] Read()
129
129
}
130
130
}
131
131
132
- // when the server returned less bytes than requested (for the previous chunk)
133
- // we'll synchronously request the remaining data
132
+ // When the server returned less bytes than requested (for the previous chunk)
133
+ // we'll synchronously request the remaining data.
134
134
//
135
- // due to the optimization above, we'll only get here in one of the following cases:
135
+ // Due to the optimization above, we'll only get here in one of the following cases:
136
136
// - an EOF situation for files for which we were unable to obtain the file size
137
137
// - fewer bytes that requested were returned
138
138
//
139
- // according to the SSH specification, this last case should never happen for normal
140
- // disk files (but can happen for device files).
139
+ // According to the SSH specification, this last case should never happen for normal
140
+ // disk files (but can happen for device files). In practice, OpenSSH - for example -
141
+ // returns less bytes than requested when requesting more than 64 KB.
141
142
//
142
143
// Important:
143
- // to avoid a deadlock, this read must be done outside of the read lock
144
+ // To avoid a deadlock, this read must be done outside of the read lock
144
145
145
146
var bytesToCatchUp = nextChunk . Offset - _offset ;
146
147
You can’t perform that action at this time.
0 commit comments