Async version of Ping? #2032
Unanswered
ozziepeeps
asked this question in
Help
Replies: 1 comment 3 replies
-
|
Thanks for asking about this. The current async approach is to read all the data asynchronous and then read the data from the byte array. And that was the reason that I did not implement an asynchronous version of the Ping method. But after a chat with GitHub Copilot I found a possible different way to do this. Not sure when I will make time for this but I will be going to check if that solution is going to work. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am streaming images in through ASP.NET Core and directly into S3 and as part of that process I make use of a decorator pattern around a
Streamin order to run the stream through Magick.NET. One of the functions I perform isPingin order to extract the image width and height, but due to this using synchronous I/O under the covers, it forces my hand to enable synchronous IO for Kestrel.This workaround works fine, but I wonder if you might consider a
PingAsyncmethod that performs asynchronous I/O, or whether you have any other suggestions?Thanks for a great library!
Beta Was this translation helpful? Give feedback.
All reactions