You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
We should also add more logging to the different pieces on TestHost to ensure that its easy to troubleshoot these types of issues if necessary, one such way is to allow providing a logger that can be used to trace important events like the response finishing, etc
The text was updated successfully, but these errors were encountered:
Currently TestServer fires OnResponseCompleted here:
https://github.com/aspnet/Hosting/blob/dev/src/Microsoft.AspNetCore.TestHost/ClientHandler.cs#L202
At this point, the response stream might have not been completely written to the response which might cause the response get cut in multiple and bizarre ways.
Instead, the event needs to be triggered after the response has been completed here:
https://github.com/aspnet/Hosting/blob/dev/src/Microsoft.AspNetCore.TestHost/ClientHandler.cs#L195
We should also add more logging to the different pieces on TestHost to ensure that its easy to troubleshoot these types of issues if necessary, one such way is to allow providing a logger that can be used to trace important events like the response finishing, etc
The text was updated successfully, but these errors were encountered: