Branch: Tag:

2014-12-04

2014-12-04 19:24:05 by Tobias S. Josefowitz <tobij@tobij.de>

Opt out of SO_REUSEADDR in Stdio.UDP->bind() users.

344:    int port = 10000 + random(1000);    int i;    while(1) { -  if( !catch( udp->bind(port++) ) ) break; +  if( !catch( udp->bind(port++, 0, 1) ) ) break;    if( i++ > 1000 ) error("Could not open a UDP port.\n");    }    if(url->method=="httpmu") {