Skip to content

socks: use the download buffer instead#6491

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/socks-buffer
Closed

socks: use the download buffer instead#6491
bagder wants to merge 2 commits into
masterfrom
bagder/socks-buffer

Conversation

@bagder

@bagder bagder commented Jan 19, 2021

Copy link
Copy Markdown
Member

The SOCKS code now uses the generic download buffer for temporary
storage during the connection procedure, instead of having its own
private 600 byte buffer that adds to the connectdata struct size. This
works fine because this point the buffer is allocated but is not use for
download yet since the connection hasn't completed.

The SOCKS buffer needs to be at least 600 bytes, and the download buffer
is guaranteed to never be smaller than 1000 bytes.

The SOCKS code now uses the generic download buffer for temporary
storage during the connection procedure, instead of having its own
private 600 byte buffer that adds to the connectdata struct size. This
works fine because this point the buffer is allocated but is not use for
download yet since the connection hasn't completed.

The SOCKS buffer needs to be at least 600 bytes, and the download buffer
is guaranteed to never be smaller than 1000 bytes.
Comment thread lib/socks.c
@bagder bagder closed this in d0688dc Jan 20, 2021
@bagder bagder deleted the bagder/socks-buffer branch January 20, 2021 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants