Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to specify the buffer size. #186

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

palkeo
Copy link

@palkeo palkeo commented Nov 16, 2023

See this PR for context: #185

@palkeo palkeo requested a review from belm0 November 16, 2023 17:21
trio_websocket/_impl.py Outdated Show resolved Hide resolved
trio_websocket/_impl.py Outdated Show resolved Hide resolved
@palkeo
Copy link
Author

palkeo commented Nov 23, 2023

Thanks for the comments, it definitely didn't make sense not to propagate it... Now I forward it everywhere, so this PR should be good to go I hope :)

(I still have an open question on the old one, I still don't really understand what the drawback/risk of increasing the default size is, to be honest. But as you want.)

Copy link
Member

@CoolCat467 CoolCat467 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as far as I can tell

Comment on lines +97 to +109
host: str,
port: int,
resource: str,
*,
use_ssl: Union[bool, ssl.SSLContext],
subprotocols: Optional[Iterable[str]] = None,
extra_headers: Optional[list[tuple[bytes,bytes]]] = None,
message_queue_size: int = MESSAGE_QUEUE_SIZE,
max_message_size: int = MAX_MESSAGE_SIZE,
receive_buffer_size: int = RECEIVE_BYTES,
connect_timeout: float = CONN_TIMEOUT,
disconnect_timeout: float = CONN_TIMEOUT
):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to avoid the reformatting in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants