Skip to content

Conversation

@yomimono
Copy link
Contributor

@yomimono yomimono commented Dec 22, 2016

/cc @samoht - this is a mirage-net-unix-side solution to the problem discovered in mirage/mirage#743 , which is exposed because the new DHCP client code calls listen to perform the DHCP lease transaction then cancels the first listener before initializing the unikernel.

@hannesm
Copy link
Member

hannesm commented Dec 23, 2016

LGTM, needs a rebase

Without this patch, canceling the thread produced by `Netif.listen` had
no effect.  After this patch, canceling `Netif.listen` causes the thread
to return with `Error `Disconnected`, but does not make the underlying
device unusable for future calls to `listen` or `write`.
@yomimono yomimono force-pushed the allow-cancelling-input branch from bc55f4a to 0a602b6 Compare December 23, 2016 15:58
@yomimono
Copy link
Contributor Author

Thanks @hannesm :)

@hannesm hannesm merged commit e6b197f into mirage:master Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants