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 support for Unix sockets #296

Merged
merged 11 commits into from
Apr 2, 2019
Merged

Add support for Unix sockets #296

merged 11 commits into from
Apr 2, 2019

Conversation

djones6
Copy link
Contributor

@djones6 djones6 commented Mar 25, 2019

Description

This is a work-in-progress for adding support for Unix domain sockets (client and server side). This includes a non-breaking version of #213 refactored from @adellibovi's PR, the equivalent server-side changes to allow listening on a Unix socket, and a test.

There is an equivalent PR for Kitura-NIO here: Kitura/Kitura-NIO#187 - naming needs to be reconciled in a few places.

Note: the level of CCurl required to support this is not available on Ubuntu 14.04. I recently removed 14.04 from the CI for this repo (#295), so the tests will pass, but the Unix socket client support will fail (at runtime) on 14.04. The same limitation may not apply to Kitura-NIO.

Motivation and Context

How Has This Been Tested?

Checklist:

  • I have submitted a CLA form
  • If applicable, I have updated the documentation accordingly.
  • If applicable, I have added tests to cover my changes.

@djones6 djones6 requested a review from ianpartridge March 25, 2019 14:09
@djones6
Copy link
Contributor Author

djones6 commented Mar 25, 2019

@ianpartridge Please could you review? @pushkarnk has an equivalent prototype for Kitura-NIO here: Kitura/Kitura-NIO#187 which seems substantially similar, though there are a couple of naming things to reconcile.

@djones6 djones6 mentioned this pull request Mar 25, 2019
3 tasks
Sources/KituraNet/ClientRequest.swift Outdated Show resolved Hide resolved
Sources/KituraNet/HTTP/HTTPServerRequest.swift Outdated Show resolved Hide resolved
Sources/KituraNet/HTTP/HTTPServerRequest.swift Outdated Show resolved Hide resolved
Do not create file path before bind
@djones6 djones6 changed the title [WIP] Add support for Unix sockets Add support for Unix sockets Apr 1, 2019
@djones6 djones6 requested a review from kilnerm April 1, 2019 14:01
Copy link

@kilnerm kilnerm left a comment

Choose a reason for hiding this comment

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

These look good to me.

@djones6 djones6 merged commit 6c9ad87 into Kitura:master Apr 2, 2019
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