-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
shairport-sync segfaults on any plain http request #921
Comments
|
Yikes, thanks for this — I’ll check it straight away. |
I can confirm that it happens, thanks. The code responsible for it is some of the most "ancient" in the program and looks very gnarly, but I'd better dive in... |
Just pushed out a fix, and I'd be grateful if you gave it a try. It simply closes the link – do you think that's a reasonable response, or should I try to send something more sensible back? |
[Update] For instance, it could respond like this, if it was any use:
|
[Further Update] It turns out that a real Airport Express does the following:
and leaves the connection open, so that's what I'll go for, unless you have a better idea... |
So, just pushed another update that does that – responds the same way as an AirPort Express. One slight difference remaining is that in Shairport Sync the connection will be closed after two minutes of inactivity. |
Awesome! I ll try this asap tomorrow Also 400 makes a lot of sense - although I would instinctively drop the connection immediately - but then, mimicking Airport behavior is probably a good idea... |
Running 0e85ec3 now. 👍 |
Thanks a lot for this contribution. Closing the issue. Please open a new one if necessary. |
While looking to build a quick "health-check" for shairport-sync (in a container), I stumbled upon this: http-requesting shairport-sync makes it SIGSEGV:
It doesn't matter what endpoint / method you hit - just curl "whatever":
curl -iv $IP:5042/play
Of course, RTSP is not HTTP, but then, it probably should not segfault?
Hope this helps.
Thanks for your work on shairport-sync! Love the project.
The text was updated successfully, but these errors were encountered: