GNOME Bugzilla – Bug 697084
Drop "unhandled status code" warnings
Last modified: 2019-02-22 09:29:48 UTC
Or make them a DEBUG. Some devices, such as the D-Link DAP-1522 apparently answer to the SSDP requests with a proper HTTP 404 which spams a lot of scary warnings:
+ Trace 231710
Created attachment 280150 [details] [review] Handle only "200 OK" response as valid SSDP response
Created attachment 280151 [details] [review] Do not use g_warning() when receiving malformed SSDP messages
So the first patch is a refactoring: SSDP responses can only have 200 as result so we can handle the error case only once, when parse_http_response fails(). Second changes warnings into debugs in your case and the one that's annoying me constantly: A device in my network uses SSDP (but doesn't even try to be a UPnP device) and forgets the "\r\n" in the end.
Review of attachment 280151 [details] [review]: +1
Review of attachment 280150 [details] [review]: +1
Thanks, pushed both patches.