dlundquist / sniproxy

Proxies incoming HTTP and TLS connections based on the hostname contained in the initial request of the TCP session.
BSD 2-Clause "Simplified" License
2.56k stars 397 forks source link

Use of `clock_gettime` restricts portability #94

Closed sfnelson closed 10 years ago

sfnelson commented 10 years ago

Prior to the introduction of clock_gettime sniproxy compiled and ran on OS X.

librt is not available on OS X so this change breaks compatibility (see 3f91313d8d619b96634642db4c7ec0c5bd371b6e)

It would be great if sniproxy would support OSX again, you might find the following post useful:

http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x

dlundquist commented 10 years ago

Thanks for pointing this out. What version of MacOS were you previously using sniproxy on?

sfnelson commented 10 years ago

Mavericks. I'm compiling with homebrew using a custom keg (build file) that automates the steps you list in the readme. I can provide the file if that's useful.

On Mon, May 12, 2014 at 2:04 AM, Dustin Lundquist notifications@github.comwrote:

Thanks for pointing this out. What version of MacOS were you previously using sniproxy on?

— Reply to this email directly or view it on GitHubhttps://github.com/dlundquist/sniproxy/issues/94#issuecomment-42771312 .

dlundquist commented 10 years ago

Sorry, I haven't got back to this issue recently. I still need to find a Mac I can do testing on. I want to avoid opening a local file whenever obtaining a the time, since that could be a hidden blocking call.

sfnelson commented 10 years ago

This thread might be interesting:

In particular:

sfnelson commented 10 years ago

Awesome, thanks.