lua-users home
lua-l archive

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


--- Diego Nehab <diego@tecgraf.puc-rio.br> wrote:
> No problem. Make sure you have the "dirty" method
> too. It is
> called to see if you have buffered input you want
> select to
> consider.
> 
ah good point. remind me a situation not sure if dirty
can handle.

As you may know, SSL is sort of encapsulate(mydata)
where the resulting string is usually longer than
mydata, because of the header involve, checksum etc.

This means that in addition to buffered input, the
output must be buffered too(as the underlying send may
not be able to send all of them out and it cannot be
redo on the next send partial call because of the md5
checksum thing, must send the remaining one).

so would select() handle this case if my dirty() call
signals the write object rather than the read object? 


      ____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7