pupnp / pupnp

libupnp: Build UPnP-compliant control points, devices, and bridges on several operating systems.
https://pupnp.github.io/pupnp
BSD 3-Clause "New" or "Revised" License
349 stars 114 forks source link

Question regarding MSG_DONTROUTE during HTTP download #395

Open zeling opened 2 years ago

zeling commented 2 years ago

Currently the HTTP download code uses sock_write, which imposes MSG_DONTROUTE when sending the request 1. IIUC the intention is to limit the traffic to local network, but MSG_DONTROUTE seems to be a noop for TCP 2. Can we lift this flag for TCP socket (I can make a PR if that sounds good)? I am asking because I tried to use libupnp on fuchsia, but this flag isn't supported there 3, so UpnpRegisterRootDevice4 is always failing for me.