Skip to content

Commit 7aab35b

Browse files
authored
Merge pull request #50 from nsslh/remove_write_sub
Stop using obsolete Base.write_sub
2 parents f596fe4 + 7d627e1 commit 7aab35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buffered_socket.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function fill_in(bio::BufferedTLSSocket, atleast::Int)
4646
while (atleast > avail) && isopen(bio.sock)
4747
bytes_read = isreadable(bio.sock) ? readbytes!(bio.sock, bio.readbuff; all=false) : 0
4848
if bytes_read > 0
49-
avail += Base.write_sub(bio.in, bio.readbuff, 1, bytes_read)
49+
avail += Base.write(bio.in, first(bio.readbuff, bytes_read))
5050
else
5151
MbedTLS.wait_for_decrypted_data(bio.sock)
5252
end

0 commit comments

Comments
 (0)