[core] When address is already in use, local server blocks with swift task continuation misused #470
Labels
good first issue
Good for newcomers
kind/bug
Feature doesn't work as expected.
semver/none
No version bump required.
size/S
Small task. (A couple of hours of work.)
Steps to reproduce:
Current behavior:
The second server blocks with message
SWIFT TASK CONTINUATION MISUSE: withLocalServer(invocationEndpoint:_:) leaked its continuation!
Desired behavior:
Local server fails to start with an error like
bind(descriptor:ptr:bytes:): Address already in use (errno: 48)
Root cause:
This block of code must be wrapped into a
do catch
block and callcontinuation.resume(throwing: error)
when an error is throw.The text was updated successfully, but these errors were encountered: