-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix value sharing exception and deadlock #2882
Fix value sharing exception and deadlock #2882
Conversation
@@ -59,6 +59,7 @@ public static void RegisterDefaults() | |||
{ | |||
_envelopeTypesByCommandTypeName = new ConcurrentDictionary<string, Type> | |||
{ | |||
[nameof(AnonymousKernelCommand)] = typeof(KernelCommandEnvelope<AnonymousKernelCommand>), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be in the list. AnonymousKernelCommand
isn't intended to cross process boundaries and can't be correctly serialized. It's a shim to run arbitrary code on the scheduler inline with other commands.
@@ -120,11 +120,38 @@ public async Task it_can_create_a_proxy_kernel_to_more_than_one_remote_subkernel | |||
SupportedKernelCommands = fsharpKernelInfo.SupportedKernelCommands | |||
}; | |||
|
|||
const string installHttpKernel = | |||
""" | |||
#r "Microsoft.DotNet.Interactive.HttpRequest.dll" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unlikely to behave the way we expect it to in the context of the test project. We should discuss.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does seem to work (including in CI) :) But will discuss offline.
…n by default. This fixes a deadlock + exception.
264766d
to
95541a3
Compare
No description provided.