diff options
author | Ingela Anderton Andin <[email protected]> | 2015-03-23 12:00:58 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-04-07 23:00:17 +0200 |
commit | 29a483d4f1eb42e23e30372d14ad69db2e9f33b9 (patch) | |
tree | 8f2c6f44a43ef4f1079196e156ffe0677291c21a /lib/ssh/src/ssh_connection_handler.erl | |
parent | 0f7e72999e65c293ea421cd931aff4fc60aa647e (diff) | |
download | otp-29a483d4f1eb42e23e30372d14ad69db2e9f33b9.tar.gz otp-29a483d4f1eb42e23e30372d14ad69db2e9f33b9.tar.bz2 otp-29a483d4f1eb42e23e30372d14ad69db2e9f33b9.zip |
ssh: Change send_buf implementation from list to queue
A queue is the behaviour that we want, so this makes the code
easier to understand and more effective.
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r-- | lib/ssh/src/ssh_connection_handler.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl index 1610364287..e1f2e059e8 100644 --- a/lib/ssh/src/ssh_connection_handler.erl +++ b/lib/ssh/src/ssh_connection_handler.erl @@ -751,7 +751,9 @@ handle_sync_event({open, ChannelPid, Type, InitialWindowSize, MaxPacketSize, Dat user = ChannelPid, local_id = ChannelId, recv_window_size = InitialWindowSize, - recv_packet_size = MaxPacketSize}, + recv_packet_size = MaxPacketSize, + send_buf = queue:new() + }, ssh_channel:cache_update(Cache, Channel), State = add_request(true, ChannelId, From, State2), start_timeout(ChannelId, From, Timeout), |