On Thu, Sep 18, 2008 at 4:15 PM, Wan-Teh Chang <[EMAIL PROTECTED]> wrote:
> If you look at the implementation of the 'poll' method in NSS:
> http://mxr.mozilla.org/security/source/security/nss/lib/ssl/sslsock.c#1567
>
> there are two cases that depend on the internal state of the SSL
> PRFileDesc:
>
> 1624     } else if ((new_flags & PR_POLL_READ) && (SSL_DataPending(fd) > 0)) {
> 1625         *p_out_flags = PR_POLL_READ;    /* it's ready already. */
> 1626         return new_flags;
> 1627     } else if ((ss->lastWriteBlocked) && (how_flags & PR_POLL_READ) &&
> 1628                (ss->pendingBuf.len != 0)) { /* write data waiting
> to be sent */
> 1629         new_flags |=  PR_POLL_WRITE;   /* also select on write. */
> 1630     }
>
> So you'd need to essentially maintain the same state in parallel.

We'll see.  I think it will fall out naturally with no effort on my part.
- Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-dev" group.
To post to this group, send email to chromium-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to