BUG/MEDIUM: connections: Add the CO_FL_CONNECTED flag if a send succeeded.

If a send succeeded, add the CO_FL_CONNECTED flag, the send may have been
called by the upper layers before we even realized we were connected, and we
may even read the response before we get the information, and si_cs_recv()
has to know if we were connected or not.

This should be backported to 1.9.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index 928de05..9153843 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -5723,6 +5723,8 @@
 			goto out_error;
 		}
 		if (ret > 0) {
+			/* A send succeeded, so we can consier ourself connected */
+			conn->flags |= CO_FL_CONNECTED;
 			conn->xprt_st &= ~SSL_SOCK_SEND_UNLIMITED;
 			count -= ret;
 			done += ret;