[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: copas, luasocket and xyssl
- From: gary ng <garyng2000@...>
- Date: Sat, 21 Jul 2007 17:41:48 -0700 (PDT)
--- Diego Nehab <firstname.lastname@example.org> 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
ah good point. remind me a situation not sure if dirty
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