-
Notifications
You must be signed in to change notification settings - Fork 296
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
Unexpected Interaction Between Timeout Middleware and Persistent #1210
Comments
Since this is an asynchronous exception issue, I'm tempted to blame it on #1199. Can you try the patch in #1207 (or #1208 for persistent-2.10.5 or #1209 for persistent-2.11.0)? To be totally clear, the problem is that you've got a |
Hi Matt,
As you suggested, I am trying to use the HEAD of persistent-2.11.0, but I am finding it difficult to tell a basic stack project to use that version of the package. My
but when I run
I've already asked for help in a few places so hopefully someone can tell me what I am doing wrong and I'll be able to respond back with the results of using the patched version. |
Try using: extra-deps:
- git: ...
commit: ...
subdirs:
- persistent |
Looks like that got me past my build problem. I am, however, still experiencing the I'm attaching an archive of the full repo in case you are interested in reviewing the contents or reproducing it. Again, to have this fully working, you need to run the docker command in the |
Hi all,
I am experiencing some unexpected behavior between persistent and the wai-extra's timeout middleware.
In brief, I have instrumented a web application to return a
503
when a request takes longer than 5 seconds to complete. However, under certain scenarios, the application is returning a500
. I have included a script that consistently reproduces the problem on my machine, but I believe that timing is a large part of this issue and can therefore make reproducing the problem tricky.I have included below some screenshots of the yesod logs and what the end-user experiences below, a screen recording showing that the issue is consistent (again, on my machine), and of the HTTP response.
consistent-failure.mov
A few things to note:
SELECT pg_sleep(6); SELECT ?? FROM generate_series(1, 90000) AS ser(num) JOIN samples ON (TRUE)" I see the expected
503`I am happy to provide more information if requested - I ignored the template for bug reports because I felt that the requested information was not relevant for this bug, but if I am wrong, I am happy to provide.
The text was updated successfully, but these errors were encountered: