<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">In my configuration, <br>
      udp sending (netsend -u)  from a linux machine to macOSX machine
      on a local ethernet network,<br>
    </div>
    <div class="moz-cite-prefix">I experienced that the  udp connection 
      closed when trying to send data if the dest port was not reachable
      on target machine.</div>
    <div class="moz-cite-prefix">Jean-Yves<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 27/03/2019 12:00, <a
        class="moz-txt-link-abbreviated"
        href="mailto:pd-dev-request@lists.iem.at" moz-do-not-send="true">pd-dev-request@lists.iem.at</a>
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:mailman.3.1553684401.31805.pd-dev@lists.iem.at">
      <pre class="moz-quote-pre" wrap="">Message: 2
Date: Tue, 26 Mar 2019 09:52:33 -0700
From: Miller Puckette <a class="moz-txt-link-rfc2396E" href="mailto:msp@ucsd.edu" moz-do-not-send="true"><msp@ucsd.edu></a>
To: Dan Wilcox <a class="moz-txt-link-rfc2396E" href="mailto:danomatika@gmail.com" moz-do-not-send="true"><danomatika@gmail.com></a>
Cc: Christof Ressi <a class="moz-txt-link-rfc2396E" href="mailto:christof.ressi@gmx.at" moz-do-not-send="true"><christof.ressi@gmx.at></a>, pd-dev
        <a class="moz-txt-link-rfc2396E" href="mailto:pd-dev@lists.iem.at" moz-do-not-send="true"><pd-dev@lists.iem.at></a>
Subject: Re: [PD-dev] netsend/netreceive UDP ignore ECONNREFUSED
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:20190326165233.GE27681@ucsd.edu" moz-do-not-send="true"><20190326165233.GE27681@ucsd.edu></a>
Content-Type: text/plain; charset=us-ascii

Incidentally, I get the same behavior (send fails if to a nonexistent local
port, but keeps trying if non-local) on linux.

cheers
Miller

On Tue, Mar 26, 2019 at 05:41:58PM +0100, Dan Wilcox wrote:
</pre>
      <blockquote type="cite" style="color: #000000;">
        <pre class="moz-quote-pre" wrap="">That's good to know.

I think I have this working. I will do some cleanup and a push, then you can test.

</pre>
        <blockquote type="cite" style="color: #000000;">
          <pre class="moz-quote-pre" wrap="">On Mar 26, 2019, at 4:43 AM, Christof Ressi <a class="moz-txt-link-rfc2396E" href="mailto:christof.ressi@gmx.at" moz-do-not-send="true"><christof.ressi@gmx.at></a> wrote:

sorry for spamming the list today. @Dan you have probably read this already: <a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/41231270/econnrefused-errors-on-udp-sendto" moz-do-not-send="true">https://stackoverflow.com/questions/41231270/econnrefused-errors-on-udp-sendto</a>

turns out that at least on my system (Windows 7) [netsend -u] only closes the socket when sending to a non-reachable port on <b class="moz-txt-star"><span class="moz-txt-tag">*</span>localhost<span class="moz-txt-tag">*</span></b>. sending to any other (existing or non-existing) host won't close the socket. this means that there's even less reason to consider this a feature and I'm not sure if there are really any patches out there which depend on this behaviour.

Christof
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">--------
Dan Wilcox
@danomatika <a class="moz-txt-link-rfc2396E" href="http://twitter.com/danomatika" moz-do-not-send="true"><http://twitter.com/danomatika></a>
danomatika.com <a class="moz-txt-link-rfc2396E" href="http://danomatika.com/" moz-do-not-send="true"><http://danomatika.com/></a>
robotcowboy.com <a class="moz-txt-link-rfc2396E" href="http://robotcowboy.com/" moz-do-not-send="true"><http://robotcowboy.com/></a>



</pre>
      </blockquote>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>