On Thu, Oct 18, 2001, Henrik Nordstrom wrote:
> Won't work very well. There may be data intentionally left in the buffer
> when throttling the upload.
>
> Basically the filedescriptor needs to be viewed as active by the select
> loop unless it is known that the buffers is empty.
>
> One quick way is to add a flag to the fde_table struct telling that the
> filedescriptor is active, and set this flag to 1 if there is data in the
> SSL buffer after SSL_Read. Then use this flag in the select loop to
> consider the fd as active regardless if select/poll returned it or not.
> The precense of such active (== flag set and not deferred)
> filedescriptors also need to zero out the select timeout.
Right. This'd make another thing that would need killing in a new
event io model.
How about taking the event io callback code from the eventio branch
and registering an event if the buffer isn't totally empty after
the SSL read?
Adrian
Received on Fri Oct 19 2001 - 01:31:48 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:33 MST