paullouisageneau / libplum

Multi-protocol Port Mapping client library
Mozilla Public License 2.0
40 stars 5 forks source link

net: fixed missing closesocket on linux when getting default gateway #33

Closed oviano closed 2 months ago

oviano commented 2 months ago

I had adapted the code to run updates/refreshes more frequently and found that after a day or so the system ran out to file descriptors.

I trace it back to a missing closesocket() call after successfully retrieving the default gateway on Linux.