apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dror Shilo" <Dror.Sh...@ericom.com>
Subject RE: bug in poll.c of apr 0.9.4
Date Mon, 23 Aug 2004 15:26:42 GMT
I use apr-0.9.4

if you don't have the poll function
this makes apr to implement apr_pollset_poll with a select call ( this how it is done in windows)
apr_status_t  apr_pollset_poll  (apr_pollset_t  *pollset, apr_interval_time_t  timeout, apr_int32_t
*num, const apr_pollfd_t **descriptors)

the num parameter have to return the length of descriptors 

with the Unix poll function this done correct, but the select call returns the total number
of socket handles that are ready and contained in the fd_set  structures
therefore if we have 2 socket that one have an FD_READ and the second have FD_READ and FD_WRITE
it will return 3 , but the lenght of descriptors is only 2 , this is a bug 
there for the fix for this bug is to add this  line at file poll.c line 622  
(*num) = j;

Dror Shilo
Ericom software




-----Original Message-----
From: Joe Orton [mailto:jorton@redhat.com]
Sent: Monday, August 23, 2004 6:22 PM
To: Dror Shilo
Subject: Re: bug in poll.c of apr 0.9.4


On Sun, Aug 22, 2004 at 09:25:53AM +0300, Dror Shilo wrote:
> hello 
> I am not familiar with the apr developer's group
> I have found a bug , and I don't now the correct way to send a report about it
> can you tell me the correct way to do it

Hi Dror, please send your message to dev@apr.apache.org and we can
discuss it there.

Regards,

joe

Mime
View raw message