Replies: 2 comments 1 reply
-
|
Gun should fail eventually depending on the |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I have retry=0 in options. But no luck.... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I'm observing strange behaviour here.
When calling gun:open and giving it incorrect/invalid SSL options (like conflicting options or missing file) it still returns {ok, Pid}. Connection fails.
But then, I'm working with gun in gen_statem process. And i'm not getting gun_up event (which is correct in such a case) but not any other events from gun process.
I can call gun:await_up and then it returns error in my case but the method waits for the connection to actually attempt to complete. Which is not well aligned with FSM ideology i use.
I'm able to get signals about errors by monitoring Pid returned from gun:open. But this looks like some external hack.
So now the question: is there any better way to do that? Maybe some options for gun:open?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions