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 optional callback ranch_transport:format_error/1 #354

Closed
wants to merge 2 commits into from

Conversation

juhlig
Copy link
Contributor

@juhlig juhlig commented Nov 18, 2024

Fixes #346.

No docs yet, wanted to see what you think of the implementation first. Will add more comments inline.

src/ranch_acceptors_sup.erl Show resolved Hide resolved
src/ranch_acceptors_sup.erl Outdated Show resolved Hide resolved
src/ranch_acceptors_sup.erl Show resolved Hide resolved
@essen
Copy link
Member

essen commented Nov 18, 2024

Looks fine yes.

@essen
Copy link
Member

essen commented Nov 18, 2024

Maybe have a test for the custom transport if we don't already.

@juhlig
Copy link
Contributor Author

juhlig commented Nov 18, 2024

Maybe have a test for the custom transport if we don't already.

I think we don't. There is ranch_erlang_transport, but that is for concuerror stuff.

@juhlig
Copy link
Contributor Author

juhlig commented Nov 18, 2024

Wait, we have concuerror tests? 😳 Since when? That completely went by me 😅

@essen
Copy link
Member

essen commented Nov 18, 2024

Yes. #261

@essen
Copy link
Member

essen commented Nov 18, 2024

@juhlig juhlig force-pushed the ranch_transport_format_error branch from 5de33d5 to 90da425 Compare November 21, 2024 09:51
@juhlig
Copy link
Contributor Author

juhlig commented Nov 21, 2024

@essen added docs and a test and changed ~999999p to ~0p in a separate commit.

@essen essen added this to the 2.2 milestone Jan 15, 2025
@essen
Copy link
Member

essen commented Jan 23, 2025

Merged, thanks!

@essen essen closed this Jan 23, 2025
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.

Minor: ranch_ssl:listen can return non-atom error reasons
2 participants