RE: UDP/DTLS sockets communication pattern is broken in Cygwin

2013-04-12 Thread Oleg Moskalenko
> > Too bad. I don't know the DTLS protocol, but isn't it possible to do the > server > part with a single UDP socket? If you keep track of the already connected > clients, you know if the just incoming packet is a connected or connecting > client, > and then you can use different threads to

Re: UDP/DTLS sockets communication pattern is broken in Cygwin

2013-04-12 Thread Corinna Vinschen
On Apr 12 08:44, Oleg Moskalenko wrote: > > > > > However, I think I found a workaround on the application level. > > Apparently all packets sent to a specific address are sent to the first > > socket > > which has been bound to the address. If that socket has been closed, the > > next in > >

RE: UDP/DTLS sockets communication pattern is broken in Cygwin

2013-04-12 Thread Oleg Moskalenko
> > However, I think I found a workaround on the application level. > Apparently all packets sent to a specific address are sent to the first socket > which has been bound to the address. If that socket has been closed, the > next in > line gets the packets (unless it has been connected and the

Re: UDP/DTLS sockets communication pattern is broken in Cygwin

2013-04-12 Thread Corinna Vinschen
Please don't http://cygwin.com/acronyms/#TOFU. Thank you. On Apr 11 18:14, Oleg Moskalenko wrote: > I am sending the test case in the attachment. > > In the attachment, you will find source code for two programs - > udpbugserver and udpbugclient. "make" will build them both. They work > perfe

RE: UDP/DTLS sockets communication pattern is broken in Cygwin

2013-04-11 Thread Oleg Moskalenko
I am sending the test case in the attachment. In the attachment, you will find source code for two programs - udpbugserver and udpbugclient. "make" will build them both. They work perfectly together in Linux, FreeBSD and Solaris. But they fail in Cygwin. Thanks Oleg > > On Thu, Apr 11, 2013

RE: UDP/DTLS sockets communication pattern is broken in Cygwin

2013-04-11 Thread Oleg Moskalenko
I can write a simple test server and client programs and I'll post it here,= in a few hours. Our existing code is just too large. Thanks Oleg > > On Thu, Apr 11, 2013 at 02:19:25PM -0700, Oleg Moskalenko wrote: > >Hi All > > > >I found a non-standard behavior of UDP sockets in Cygwin. Normally

Re: UDP/DTLS sockets communication pattern is broken in Cygwin

2013-04-11 Thread Christopher Faylor
On Thu, Apr 11, 2013 at 02:19:25PM -0700, Oleg Moskalenko wrote: >Hi All > >I found a non-standard behavior of UDP sockets in Cygwin. Normally, people = >do not experience it, but the communication pattern that I am going to desc= >ribe here is often used in DTLS (actually, this is virtually the

UDP/DTLS sockets communication pattern is broken in Cygwin

2013-04-11 Thread Oleg Moskalenko
Hi All I found a non-standard behavior of UDP sockets in Cygwin. Normally, people = do not experience it, but the communication pattern that I am going to desc= ribe here is often used in DTLS (actually, this is virtually the only way t= o make OpenSSL working with DTLS on the server side), so