-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
PipeTransmissionMode.Message is not supported on macOS #24097
Comments
How would it be implemented? |
Yeah, someone else has just pointed out that *nix systems don't have a concept of messages, which I didn't know. I guess my question now is why it's in Netstandard? Should it be? |
We try not to subset types, putting some of a type into the standard and some not, as for the not part there's then no way to use that functionality on platforms where it is implemented. In such cases we've generally opted to include it, try hard to make it work everywhere, and where we can't fall back to either partial implementations or throwing PlatformNotSupportedExceptions; you can then do platform detection to use the functionality on platforms where it's available and fall back to something else on those where it isn't. The analyzer described at https://blogs.msdn.microsoft.com/dotnet/2017/10/31/introducing-api-analyzer/ is also evolving to make it easier to help, though I don't believe it's functionality/data is up-to-date for this particular case. |
I don't know of a way to properly implement this on Unix. If you have suggestions or we discover a way, this can be re-opened. In the meantime, though, it's not actionable so I'm going to close it. Thanks. |
How does that message thing work in Windows then? Can this be emulated on other platforms? If you're not doing it, then I'll have to do it. (Actually I'll need to do it anyway because I need it sooner than you release anything.) I'd just use a 32-bit length prefix and then push over as many bytes, then split into messages on the receiving end. Would that work? |
@stephentoub Didn't mention you in my last comment where I suggested an implementation. Inspired by the WebSocket message header. |
Is it on the roadmap?
The text was updated successfully, but these errors were encountered: