-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Open connections are leaking #490
Comments
Perhaps |
Perhaps. I didn't know it existed.
…On Sep 19 2018, at 11:40 pm, naushadh ***@***.***> wrote:
Perhaps sinkNull (http://hackage.haskell.org/package/conduit-1.3.0.3/docs/Data-Conduit-Combinators.html#v:sinkNull) would be quicker?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub (#490 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABc-avJbvyDHY9RvWjGpSAq-o6dS3jQdks5ucrnhgaJpZM4Wwjg4).
|
Maybe related to #475? |
This is basically what amazonka-1.6.0 is doing, but that's broken in the presence of streaming (connections are being closed too early), see #466 |
Another workaround is to call |
Thanks! I'm going to wait for a better fix though, since amazonka is used quite a bit at Wire and I'd rather not depend on nobody accidentally calling "bad" functions. But maybe this workaround will be useful to someone!
…On Sep 24 2018, at 2:21 am, David Turnbull ***@***.***> wrote:
Another workaround is to call deleteMessageBatch even when you are just acking a single message. deleteMessageBatch has a response type, which causes the response body to be evaluated and thus no connection leak.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub (#490 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABc-anFhNcrMzN5HRY0FwGA99P_rcjTIks5ueCV_gaJpZM4Wwjg4).
|
@brendanhay I intend to make a pull-request for this, but I'd love if you (or somebody else) could look at the issue briefly and tell me whether just fixing the [1] amazonka/core/src/Network/AWS/Response.hs Lines 41 to 105 in 248f7b2
|
The two issues mentioned in our previous snapshot are closed now: brendanhay/amazonka#466 brendanhay/amazonka#490
The two issues mentioned in our previous snapshot are closed now: brendanhay/amazonka#466 brendanhay/amazonka#490
* snapshots: add sha256 and size to wireapp/amazonka * pin amazonka to brendanhay/develop The two issues mentioned in our previous snapshot are closed now: brendanhay/amazonka#466 brendanhay/amazonka#490
I do a bunch of
SQS.deleteMessage
s in a loop, and experience long waits (5-10 seconds) after getting 99 open connections. This happens with https://github.com/iain/fake_sqs (I haven't tested with real SQS).This behavior is introduced by a recent commit (made after 1.6.0 was released): 2688190.
My guess is that in the absence of finalizers in conduit-1.3, nothing is closing connections open by
Response
s. The following diff fixes the behavior ofdeleteMessage
for me:It's still slower than it used to be (I've no idea why), but at least it doesn't leak connections anymore and I get no stuck requests.
Other
receiveBlah
functions might also be affected.The text was updated successfully, but these errors were encountered: