mirror of
https://github.com/moparisthebest/socat
synced 2024-12-21 22:48:48 -05:00
UDP-LISTEN need not sleep
This commit is contained in:
parent
a593b09df6
commit
6cefd1941e
3
CHANGES
3
CHANGES
@ -53,6 +53,9 @@ corrections:
|
|||||||
Fixed by providing temporary DH parameters. Thanks to Philip Rowlands
|
Fixed by providing temporary DH parameters. Thanks to Philip Rowlands
|
||||||
for drawing my attention to this issue.
|
for drawing my attention to this issue.
|
||||||
|
|
||||||
|
UDP-LISTEN slept 1s after accepting a connection. This is not required.
|
||||||
|
Thanks to Peter Valdemar Morch for reporting this issue
|
||||||
|
|
||||||
porting:
|
porting:
|
||||||
Cedril Priscal ported socat to Android (using Googles cross compiler).
|
Cedril Priscal ported socat to Android (using Googles cross compiler).
|
||||||
The port includes the socat_buildscript_for_android.sh script
|
The port includes the socat_buildscript_for_android.sh script
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* source: xio-udp.c */
|
/* source: xio-udp.c */
|
||||||
/* Copyright Gerhard Rieger 2001-2010 */
|
/* Copyright Gerhard Rieger 2001-2011 */
|
||||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||||
|
|
||||||
/* this file contains the source for handling UDP addresses */
|
/* this file contains the source for handling UDP addresses */
|
||||||
@ -257,7 +257,6 @@ int xioopen_ipdgram_listen(int argc, const char *argv[], struct opt *opts,
|
|||||||
if (Close(fd->stream.fd) < 0) {
|
if (Close(fd->stream.fd) < 0) {
|
||||||
Info2("close(%d): %s", fd->stream.fd, strerror(errno));
|
Info2("close(%d): %s", fd->stream.fd, strerror(errno));
|
||||||
}
|
}
|
||||||
Sleep(1); /*! give child a chance to consume the old packet */
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user