-
Notifications
You must be signed in to change notification settings - Fork 397
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
fallback option is broken, second call to fallback crashes the SNIProxy with sniproxy SIGABRT, first call goes fine. #160
Comments
When request does not include sin-extension/hostname, i see below errors in error.log first time and second time for the same call SniProxy crashes - 2015-04-02 07:53:05 Request from [::ffff:xx.xxx.xx.xx]:53536 did not include a hostname My configuration is below, |
Could you try it with |
I've added a test in 93af73a and have been been able to reproduce this behavior. |
Ok great, Do you still want me to test 127.0.0.1 or you got the handle on the issue? |
@balyanrobin I can't reproduce your crash. Using an IP literal rather than a hostname will allow the fallback server to to be used even if there is a problem resolving DNS queries. I've added a warning in the 0.4.0 release to discourage this configuration, although I could see certain applications where this could be useful so its only a warning. In the case of localhost, using ::1 or 127.0.0.1 is a good idea. |
for me it is crashing even if i use IP literal also like : fallback 127.0.0.1:8080 |
below line in connection.c under resolve_server_address is destroying the fallback memory, and hurting the next connection falling back on the same fallback server. Could you please review it once free(server_address); |
Now listener_lookup_server_address() always returns a new allocation or NULL. Thanks @balyanrobin for identifying this error. Moved copy address logic into its own routine. Fixes #160 Fixes #161
Hi,
Thanks for providing a great software to the community. I just downloaded the latest Sniproxy code and installed it. I noticed when the request goes to fallback domain it crashes in the second call. First call goes fine. Do you have any Idea?
Thanks i advance for your efforts and time.
Robin
The text was updated successfully, but these errors were encountered: