-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
HTTPS request timeouts when Pode is running on PS 7.4 #1291
Comments
It's not a Pode issue but an Invoke-WebRequest one |
I've come across the Invoke-WebRequest issues in other projects with PS5.1 but this problem only shows up when the Pode server is running on PS7.4. When running on PS7.2 I get no timeouts with Invoke-WebRequest. |
Hello, |
We were able to replicate this issue easily after some further troubleshooting. It appears that if we use HTTPS on 7.4.x with Pode, API calls with IRM or IWR are about 85% successful, while the remainder timeout for no obvious reasons. We can tell in our logs that the routes appear to be completing and returning results, but the JSON seemingly never returns, so our invokes time out. This randomness and timeouts cause things to run extremely slow, to the point we cannot use 7.4.x for our Pode Server. If we downgrade to 7.3.12 everything works as expected without changing anything. Broken
Works
Server Client We get no errors, warnings, or exceptions anywhere. Here's an example test looping through one of our routes. We have all log types enabled (Informational, Error, Warning, Debug, Verbose). It sounds like #977 may be the same issue, but perhaps not realized.
Oddly enough if we switch to Curl as mentioned by @mdaneri above, everything works.
Additionally we've tried adding an IPv6 setup, as well as -DualMode which doesn't appear to make a difference. The same behavior was mentioned prior to the commit of DualMode in #1267 |
Testing on |
I've just pushed a refactor of the .NET socket receiver which Pode uses to the branch/commit above. I was able to reproduce the issue described, and with the work done above was able to resolve the issue on my end. If there's any one in a possible to checkout the branch above, build and test Pode locally, that would be a great help! |
I tested it, and it works fine on the Windows VM, where it always fails. |
Test in Windows server 2022 PS 7.4.4 and 7.4.5 and it's ok for me. |
…, to help detect SSL issues in the future
Working fine here now on Server 2022, the test build, and PS7.4.5. FWIW I can't tell a noticeable difference in performance, but that's hard to gauge in our dev environment since it's pretty quiet. |
Awesome, thanks all! 😄 I'll get this merged for 2.11.0 then |
… and curl, to help detect SSL issues in the future
…officially supported by .NET
Describe the Bug
I'm having an issue with Invoke-WebRequest/Invoke-RestMethod timeouts using SSL when Pode is running on PowerShell 7.4 but not 7.2. This is similar to #977 but this seems to be a server-side issue. On the client side, I have tried 7.2 and 7.4 but it doesn't seem to matter, and the browser doesn't seem to be affected by this.
Steps To Reproduce
Server:
Client:
Expected Behavior
When Pode is running on 7.2 I get an updated timestamp every second.
When Pode is running on 7.4 I get mostly timeouts with random successful timestamps in between.
Platform
The text was updated successfully, but these errors were encountered: