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

connect to application server via unix-domain socket #383

Merged
merged 7 commits into from Jun 29, 2015

Conversation

Projects
None yet
2 participants
@kazuho
Member

kazuho commented Jun 29, 2015

Some application servers speaking HTTP/1.1 is capable of listening to an unix-domain socket (which is often faster and easier to operate than TCP sockets).

This PR add to the proxy implementation of H2O the support to connect to such servers.

The URL of such a server is expressed by http://[unix:/path/to/socket]/path (which loosely conforms to the syntax of URI defined in RFC 3986.

obsoletes #51

always include sys/un.h when using `sockaddr_un` (even pointers), sin…
…ce the struct name might be `#define`-ed

kazuho added a commit that referenced this pull request Jun 29, 2015

Merge pull request #383 from h2o/kazuho/proxy-unix-socket
connect to application server via unix-domain socket

@kazuho kazuho merged commit e448231 into master Jun 29, 2015

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@cubicdaiya

This comment has been minimized.

Show comment
Hide comment
@cubicdaiya

cubicdaiya Jun 29, 2015

Contributor

👍

Contributor

cubicdaiya commented Jun 29, 2015

👍

kazuho added a commit that referenced this pull request Dec 18, 2015

kazuho added a commit that referenced this pull request Dec 18, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment