audreyt / network-multicast

[Haskell] The "Network.Multicast" module is for sending UDP datagrams over multicast (class D) addresses.
http://github.com/audreyt/network-multicast
Other
23 stars 12 forks source link

multicastReceiver can crash leaving unclosable socket #4

Closed joeyh closed 11 years ago

joeyh commented 11 years ago

Prelude Network.Multicast> multicastReceiver "224.0.0.99" 9999 *\ Exception: addMembership: failed (Unknown error -1) Prelude Network.Multicast>

This crash occurred because I had taken down all the machine's interfaces that supported multicast. The crash itself is acceptable; the problem is that it's already opened a network socket by the time it crashes, and this socket cannot be closed and so we have a nasty leak.

The fix for this bug will probably be similar to the fix for #2 ...

Version: 0.0.7

audreyt commented 11 years ago

Thanks! Merged and released at network-multicast-0.0.8.