Re: [Boston.pm] threads and sockets

2005-10-06 Thread Ben Tilly
On 10/6/05, Uri Guttman <[EMAIL PROTECTED]> wrote: > > "BT" == Ben Tilly <[EMAIL PROTECTED]> writes: > > >> you don't even need children to do non-blocking rpc calls. if you do the > >> protocol yourself and it is over a socket (as it should be), you can do > >> async rpc calls. but if

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Uri Guttman
> "BT" == Ben Tilly <[EMAIL PROTECTED]> writes: >> you don't even need children to do non-blocking rpc calls. if you do the >> protocol yourself and it is over a socket (as it should be), you can do >> async rpc calls. but if you are using a typical library that hardcodes a >> sync

Re: [Boston.pm] event loop server

2005-10-06 Thread Ben Tilly
On 10/6/05, Tom Metro <[EMAIL PROTECTED]> wrote: > Uri Guttman wrote: > > ...i recommend an event loop server which is stable, faster and > > easier to code for in most situations. > > Unless POE does a really good job of hiding the details of non-blocking > IO, I'd find it hard to believe that an

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Ben Tilly
On 10/6/05, Uri Guttman <[EMAIL PROTECTED]> wrote: > > "BT" == Ben Tilly <[EMAIL PROTECTED]> writes: > > BT> On 10/6/05, Jeremy Muhlich <[EMAIL PROTECTED]> wrote: [...] > BT> You can do this with an event loop and multiple processes. > > BT> The RPC server doesn't make RPC calls.

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Uri Guttman
> "BT" == Ben Tilly <[EMAIL PROTECTED]> writes: BT> On 10/6/05, Jeremy Muhlich <[EMAIL PROTECTED]> wrote: >> The problem is that I'm writing an RPC server that itself needs to make >> RPC calls. I can't be blocking on new clients connecting or existing >> clients sending requests

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> At 6:36 PM -0400 10/6/05, Uri Guttman wrote: >> > "JM" == Jeremy Muhlich <[EMAIL PROTECTED]> writes: >> JM> Has anyone here written a serious threaded server in perl? I JM> can't seem to find any threads + sockets examples

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Tom Metro
Jeremy Muhlich wrote: > Has anyone here written a serious threaded server in perl? I can't seem > to find any threads + sockets examples anywhere. Having written some "less than serious" daemons using threads on Win32, I tried using threads (via Net::Daemon) to implement an SMTP proxy server

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Ben Tilly
On 10/6/05, Jeremy Muhlich <[EMAIL PROTECTED]> wrote: > On Thu, 2005-10-06 at 18:36 -0400, Uri Guttman wrote: > > even the people who wrote the threads code in perl disavow them, so i > > wouldn't even try to do any heavy threading in perl. instead i recommend > > an event loop server which is

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Dan Sugalski
At 6:36 PM -0400 10/6/05, Uri Guttman wrote: > > "JM" == Jeremy Muhlich <[EMAIL PROTECTED]> writes: > > JM> Has anyone here written a serious threaded server in perl? I > JM> can't seem to find any threads + sockets examples anywhere. I > JM> have some stuff working with Thread::Pool

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Jeremy Muhlich
On Thu, 2005-10-06 at 18:36 -0400, Uri Guttman wrote: > even the people who wrote the threads code in perl disavow them, so i > wouldn't even try to do any heavy threading in perl. instead i recommend > an event loop server which is stable, faster and easier to code for in > most situations. you

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Uri Guttman
> "JM" == Jeremy Muhlich <[EMAIL PROTECTED]> writes: JM> Has anyone here written a serious threaded server in perl? I JM> can't seem to find any threads + sockets examples anywhere. I JM> have some stuff working with Thread::Pool but there are problems. JM> (I can elaborate if

Re: [Boston.pm] threads and sockets

2005-10-06 Thread Ben Tilly
On 10/6/05, Jeremy Muhlich <[EMAIL PROTECTED]> wrote: > Has anyone here written a serious threaded server in perl? I can't seem > to find any threads + sockets examples anywhere. I have some stuff > working with Thread::Pool but there are problems. (I can elaborate if > anyone wants me to...)

[Boston.pm] threads and sockets

2005-10-06 Thread Jeremy Muhlich
Has anyone here written a serious threaded server in perl? I can't seem to find any threads + sockets examples anywhere. I have some stuff working with Thread::Pool but there are problems. (I can elaborate if anyone wants me to...) -- Jeremy ___