* Henry B. Hotz ([EMAIL PROTECTED]) wrote: > I've been looking at adding SASL or GSSAPI as an auth method. I have > some questions about how to handle the flow of control changes.
Great! I'd love to see that implemented, personally, so if you're looking for help, please let me know. > round trips and network accesses done. I notice that all the > authentication (pg_fe_sendauth()) is done inside PWConnectPoll(), > which sounds like something that isn't expected to block on network > access. I think you're missing a bit about how the design works. PGConnectPoll() is expected to be called multiple times until the connection is established. Basically, you can return something to the user that says "connection not done yet, but I'm returning because you said to not block. Please call again when more data available or you have the opportunity to". This is a pretty common arrangment when non-blocking systems are implemented. As Tom said, you should just need to have some state stored so that you know what's going on when you're called again. Thanks! Stephen
Description: Digital signature