<div dir="ltr">Garry this probably could be done in hackney bay connecting yourself to the server and pass your own socket. Can you describe more in an hackney Â ticket (or here) what is the workflow?<div><br></div><div>- benoit</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 23, 2017 at 6:10 PM Garry Hodgson <<a href="mailto:garryh@att.com">garryh@att.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We've been looking at replacing our use of httpc with some other http<br class="gmail_msg">
client like Hackney or Gun. Both of those clients have the feature that<br class="gmail_msg">
they keep live connections to servers, reconnecting as needed. This is<br class="gmail_msg">
generally a Good Thing, but is problematic in our environment. We are<br class="gmail_msg">
using SDP (Software Defined Perimeter), which requires that we send a<br class="gmail_msg">
special SPA packet to effectively do a port knock to open port before<br class="gmail_msg">
connecting. The port knock opens a pinhole firewall on server side that<br class="gmail_msg">
will allow connect from client for a short time. Otherwise all connects<br class="gmail_msg">
are ignored (drop all firewall rule).<br class="gmail_msg">
<br class="gmail_msg">
So my question is, can this reconnect feature be disabled in either Gun<br class="gmail_msg">
or Hackney? Or is there some hook we could use to pass a "grease the<br class="gmail_msg">
skids" fun to be called first when reconnecting?<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
erlang-questions mailing list<br class="gmail_msg">
<a href="mailto:erlang-questions@erlang.org" class="gmail_msg" target="_blank">erlang-questions@erlang.org</a><br class="gmail_msg">
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" class="gmail_msg" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br class="gmail_msg">
</blockquote></div>