async and tls take two

2008-05-04 Thread Douglas Hunter
Howdy all, In the previous thread, I noticed that the socket upgrading that I had hacked in defeated the purpose of TLS in -async, as it blocked while the socket upgrade was in progress. So I came up with a far uglier patch! [grin] It borrows heavily from Perlbal::SocketSSL. The bad news i

Re: async and tls take two

2008-05-04 Thread Matt Sergeant
Yeah this makes a lot more sense... Though I wonder if we shouldn't modify Danga::Client to just have some sort of "reader" entry, so that anything else (not just TLS) can hook into the event_read stream. I'll have a poke. On 4-May-08, at 12:59 PM, Douglas Hunter wrote: Howdy all, In the

Re: async and tls take two

2008-05-04 Thread Matt Sergeant
On 4-May-08, at 7:28 PM, Matt Sergeant wrote: Yeah this makes a lot more sense... Though I wonder if we shouldn't modify Danga::Client to just have some sort of "reader" entry, so that anything else (not just TLS) can hook into the event_read stream. I'll have a poke. Can you check if thi

Re: async and tls take two

2008-05-04 Thread Douglas Hunter
Matt Sergeant wrote: On 4-May-08, at 7:28 PM, Matt Sergeant wrote: Yeah this makes a lot more sense... Though I wonder if we shouldn't modify Danga::Client to just have some sort of "reader" entry, so that anything else (not just TLS) can hook into the event_read stream. I'll have a poke. C