Re: SA_SIGINFO | SA_RESETHAND fix backport

2015-03-20 Thread Fedor Indutny
Allan, Thank you for reply! And sorry, I didn't seen it. How long do you think it may take to get it released and will it be included in 10.2? Thank you, Fedor. On Friday, March 20, 2015, Allan Jude wrote: > On 2015-03-20 01:00, Fedor Indutny wrote: > > Hello people! > >

SA_SIGINFO | SA_RESETHAND fix backport

2015-03-20 Thread Fedor Indutny
Hello people! While trying to fix node.js/io.js issue with signal handling on FreeBSD 10.1, I have found that the problem was due to a kernel bug. Luckily that bug is fixed in: https://github.com/freebsd/freebsd/commit/4501dadd00cece6d06392c42e5fc6af07731e451 But it looks like the fix wasn't bac

`SA_SIGINFO | SA_RESETHAND` fix backport (DUP)

2015-03-20 Thread Fedor Indutny
Hello people! While trying to fix node.js/io.js issue with signal handling on FreeBSD 10.1, I have found that the problem was due to a kernel bug. Luckily that bug is fixed in: https://github.com/freebsd/freebsd/commit/4501dadd00cece6d06392c42e5fc6af07731e451 But it looks like the fix wasn't bac

Re: KQueue 0-length UDP packet

2014-08-26 Thread Fedor Indutny
Ok, thanks for a clarification! On Tue, Aug 26, 2014 at 1:48 PM, Jan Kokemüller wrote: > Hi, > > > What I wanted to ask is: why does FreeBSD kqueue implementation treat >> `SO_RCVLOWAT` as a raw packet size watermark, and not using the actual >> data size for filtering out events? >> > > It lo

Re: KQueue 0-length UDP packet

2014-08-24 Thread Fedor Indutny
event on 0-size udp packets, but the behavior itself seems a bit odd, right? Please let me know if this is a bug, and I'll submit a patch. Cheers, Fedor. On Sat, Aug 2, 2014 at 2:57 PM, Fedor Indutny wrote: > After reading that line more carefully, I wonder if this behavior is

Re: KQueue 0-length UDP packet

2014-08-02 Thread Fedor Indutny
please comment on this? Is it a bug? -- Regarding OSX: Submitted Apple Bug # 17894467 , with a patch. If anyone has friends at Apple who could help getting this in, please let me know! Cheers, Fedor. On Sat, Aug 2, 2014 at 2:41 PM, Fedor Indutny wrote: > Guess I know

Re: KQueue 0-length UDP packet

2014-08-02 Thread Fedor Indutny
Guess I know the answer: https://cloudup.com/cCkjLhI4M2r Basically, OSX is checking `kn_data` and FreeBSD is using `so->so_rcv.sb_cc`. Thank you anyway! On Sat, Aug 2, 2014 at 1:39 PM, Fedor Indutny wrote: > Hello! > > I'm trying to figure out, why this code: > > htt

KQueue 0-length UDP packet

2014-08-02 Thread Fedor Indutny
Hello! I'm trying to figure out, why this code: https://github.com/indutny/0-udp Which basically sends a 0-length UDP packet to a server and polls kqueue events on the server fd. Return 1 kevent on FreeBSD, and blocks indefinitely without returning any events on OSX. So far I could see that Fr