You need to sign in or sign up before continuing.
dgram: fix double implicit bind error
Calling send() on an unbound socket forces an implicit bind to a random port. 332fea5a made the 'listening' event asynchronous. Unfortunately, it also introduced a bug where the implicit bind was tried more than once if send() was called again before the first bind operation completed. Address that by keeping track of the bind status and making sure that bind() is called only once. Fixes #4499.
parent
30bd774f
Please register or sign in to comment