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

Merged
merged 6 commits into from
Jan 31, 2025

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.)

@A5rocks A5rocks requested a review from belm0 December 1, 2024 18:55
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

Copy link
Contributor

Choose a reason for hiding this comment

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

Given the type hint PR did all the reformatting this no longer is reformatted (heh).

@A5rocks A5rocks requested a review from belm0 January 31, 2025 00:55
@CoolCat467 CoolCat467 merged commit 4247cd5 into python-trio:master Jan 31, 2025
9 checks passed
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.

4 participants