Ken Simpson wrote:
I was thinking, would it be better to make it an APR::Socket method?
$socket->poll($c->pool, 1_000_000, APR::POLLIN);
looks more intuitive to me. Especially since you've hardcoded the fd type
to be socket:
fd.desc_type = APR_POLL_SOCKET;
That's a really good idea. I'll move i
> I was thinking, would it be better to make it an APR::Socket method?
>
> $socket->poll($c->pool, 1_000_000, APR::POLLIN);
>
> looks more intuitive to me. Especially since you've hardcoded the fd type
> to be socket:
> fd.desc_type = APR_POLL_SOCKET;
That's a really good idea. I'll move it