Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: poll, bozohttp and rump



On Thu, Nov 23, 2017 at 05:01:14PM +0000, Patrick Welche wrote:
> The attached rump script leaves me with a bozohttp process in a tight loop
> polling in src/libexec/httpd/daemon-bozo.c:
> 
>    269  again:
>    270      if (poll(httpd->fds, (unsigned)httpd->nsock, INFTIM) == -1) {
>    271              /* fail on programmer errors */
>    272              if (errno == EFAULT ||
>    273                  errno == EINVAL)
>    274                      bozoerr(httpd, 1, "poll: %s",
>    275                              strerror(errno));
>    276
>    277              /* sleep on some temporary kernel failures */
>    278              if (errno == ENOMEM ||
>    279                  errno == EAGAIN)
>    280                      sleep(1);
>    281
>    282              bozowarn(httpd, "poll: errno=%d (%s)", errno, strerror(errno));
>    283
>    284              goto again;
>    285      }
> 
> errno == 0, so I suppose poll is returning -1 without setting errno?

Could well be similar to

t_forwarding (7/14): 6 test cases
    ipforwarding_fastforward_v4: [0.254873s] Failed: atf-check failed; see the output of the test for details
    ipforwarding_fastforward_v6: [0.253984s] Failed: atf-check failed; see the output of the test for details
    ipforwarding_fragment_v4: [0.256387s] Failed: atf-check failed; see the output of the test for details
    ipforwarding_misc: [10.311730s] Failed: atf-check failed; see the output of the test for details


P


Home | Main Index | Thread Index | Old Index