MINOR: connection: check for send_proxy during the connect(), not the SI
It's cleaner to check for a pending send_proxy_ofs while establishing
the connection (which already checks it anyway) and not in the stream
interface.
diff --git a/include/proto/stream_interface.h b/include/proto/stream_interface.h
index 46d0c72..1cf9421 100644
--- a/include/proto/stream_interface.h
+++ b/include/proto/stream_interface.h
@@ -201,7 +201,7 @@
if (unlikely(!conn || !conn->ctrl || !conn->ctrl->connect))
return SN_ERR_INTERNAL;
- ret = conn->ctrl->connect(conn, !channel_is_empty(si->ob), !!conn->send_proxy_ofs);
+ ret = conn->ctrl->connect(conn, !channel_is_empty(si->ob), 0);
if (ret != SN_ERR_NONE)
return ret;
@@ -209,10 +209,6 @@
if (si->flags & SI_FL_SRC_ADDR)
conn_get_from_addr(conn);
- /* Prepare to send a few handshakes related to the on-wire protocol. */
- if (conn->send_proxy_ofs)
- conn->flags |= CO_FL_SI_SEND_PROXY;
-
/* we need to be notified about connection establishment */
conn->flags |= CO_FL_WAKE_DATA;