<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Michael,</p>
    <p>No, there is no portable way of implementing this feature.  In
      fact, the OS kernel only notifies server applications (including
      stunnel) about a new incoming connection *after* the three-way TCP
      handshake has completed.<br>
    </p>
    <p>Some more details:<br>
<a class="moz-txt-link-freetext" href="https://groups.google.com/forum/#!topic/comp.protocols.tcp-ip/vk7uY5dkdpY">https://groups.google.com/forum/#!topic/comp.protocols.tcp-ip/vk7uY5dkdpY</a></p>
    <p>Best regards,<br>
          Mike<br>
    </p>
    <div class="moz-cite-prefix">On 5/28/2020 2:04 AM, Michael S.
      Chusovitin wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAC-YOF4FyKWy30iME=aeZpvkdt-Ob8VaBCaoJKKkF3SW4pEcaA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Dear stunnel users,
        <div dir="auto"><br>
        </div>
        <div dir="auto">please advise how to solve the following:</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">- an Application connects to stunnel-client
          (installed at the same machine);</div>
        <div dir="auto">- stunnel-client tries to connect to
          stunnel-server (remote), fails and sends RST to the App;</div>
        <div dir="auto">- but the App has already sent some datagrams to
          stunnel-client during TIMEOUTconnect period and they aren't
          transferred to stunnel-server.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Is there any way to make stunnel-client delay
          its ACK to the App until the connection to stunnel-server is
          established?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Thanks!</div>
        <div dir="auto"><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
stunnel-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a>
<a class="moz-txt-link-freetext" href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a>
</pre>
    </blockquote>
  </body>
</html>