What would be the best way to connect two streams in both directions? To implement a proxy for example.
(s/connect s1 s2)
works fine for one direction. But (s/connect s2 s1)
leads to strange behavior.
Also, can anybody explain this code: Why there is no circular loop? https://user-images.githubusercontent.com/1059232/49654111-fda6f700-fa47-11e8-9cac-ca6fbfb49b82.png
Not sure I got your question correctly, but s/consume
is essentially a loop
does aleph retry (and if so how many times / how long) if it can't bind the designated port on server start?
AFAIK, it does not. aleph
relies on netty
’s implementation of .bind
, and netty
calls java.net.Socket
bind which throws IOException
if the socket is already bound.
another: what's the simplest way to enable TLS1.3 in aleph http client?