Skip to content

Support unix domain sockets in the http client [MERGED]#322

Closed
seanyoung wants to merge 1 commit intolibevent:masterfrom
seanyoung:unix-socket
Closed

Support unix domain sockets in the http client [MERGED]#322
seanyoung wants to merge 1 commit intolibevent:masterfrom
seanyoung:unix-socket

Conversation

@seanyoung
Copy link
Copy Markdown
Contributor

There are no standard for encoding a unix socket in an url. nginx uses:

http://unix:/path/to/unix/socket:/httppath

The second colon is needed to delimit where the unix path ends and where
the rest of the url continues.

Copy link
Copy Markdown
Member

@azat azat left a comment

Choose a reason for hiding this comment

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

Hi @seanyoung

I like the changes in general, but they should be split into smaller patches (I count 3, evhttp_uri, server accepting changes, client making request changes)
Are you still interesting in this? If so, can you please split them?

P.S. and I'm very sorry for not paying attention before.

There are no standard for encoding a unix socket in an url. nginx uses:

http://unix:/path/to/unix/socket:/httppath

The second colon is needed to delimit where the unix path ends and where
the rest of the url continues.

Signed-off-by: Sean Young <sean@mess.org>
@seanyoung
Copy link
Copy Markdown
Contributor Author

Please let me know if you want to split the commit when you come round to reviewing it in 2025.

Copy link
Copy Markdown
Member

@azat azat left a comment

Choose a reason for hiding this comment

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

Thanks!

I've addressed my comments, but I can't push to your topic branch, will apply the patch to upstream w/o updating PR then, and close PR after (so it will not have merged icon).

@azat
Copy link
Copy Markdown
Member

azat commented Aug 10, 2021

Applied. Upstream commit is f446229.

@azat azat closed this Aug 10, 2021
@azat azat changed the title Support unix domain sockets in the http client Support unix domain sockets in the http client [MERGED] Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants