Re: [Boston.pm] threads and sockets

2005-10-07 Thread Jeremy Muhlich
Uri Guttman wrote: 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. The protocol is my own and it can do async calls. However I do in fact also use DBI. Otherwise I would

[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 ___

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...) Why

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 anyone wants me

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 can

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 stable,

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, 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. Instead it sends a message

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 you are using a typical