-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
stream_error with retry #291
Comments
Not enough info I'm afraid. I don't know where this message comes from. Which pool are you using? What server? Any way I can reproduce? |
Pool is erlPool (10sockets for each PoolName)
error message I receive directly from we have like 30-50k requests to apns per minute please tell me if you need more specific information |
Oh it's against APNS? If I recall they were doing something weird where they only allow 1 stream initially and then increase that to 100 after the first request succeeded. You might be running into that. Try to trace the HTTP/2 settings that Gun receives. |
Okay thank you. I will close the ticket for now and get back to you when I will be able to trace settings on production env |
Here is what I found connected to active production node make some manual tests OK TEST
ERROR TEST
all the data seems like the same except connection pid and stream ref but |
All I know about this is that it likely happens because the client was disconnected. Most likely it received an |
Hi, I have the same, with 1.3.0 I had And after update to 2.0.1 these problems are not exist but I have had new error `
` |
Could be happening if the network has hiccups. You should see TCP connections getting closed at the same time. |
Hello
Gun vsn - 2.0.0-rc.2
I faced some stream_error issue with the latest version of gun
connection pool options for gun
Opts2 = Opts#{ connect_timeout => 5000, retry => 200, retry_timeout => 500 % 500ms }
here is the part of the code
a lot of time I receive the error
`
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
<0.16797.7>@: [HTTP2_AF] ERR_AWAIT 'apns_voip-prod' {error,{stream_error,closed}}
`
Yes it is working as it should after retrying but I wanted to ask if it's good decision to make it work this way ?
I also tried to use settings like max_concurent_streams (200) but had no luck (Still reproducing such error messages)
Could you please point me to the right direction to (maybe) avoid this type of messages and re-try function (sometimes I need to execute function 15 times before it pass correctly)
thanks in advance
The text was updated successfully, but these errors were encountered: