Re: agent questions - DOS - asynchrony - protection

2009-06-11 Thread Toralf Wittner
On Wed, 2009-06-10 at 22:23 -0700, Robert Lehr wrote: > Given that this will only occur w/ the send-off function, we can guess > that the tasks may on-average longer than functions that could be sent > via "send". that is b/c send-off is recommended for functions that > could block. That could b

Re: agent questions - DOS - asynchrony - protection

2009-06-11 Thread Daniel Lyons
On Jun 10, 2009, at 11:23 PM, Robert Lehr wrote: >> As you noted, send-off uses a cached thread pool, so there is no >> protection from creating more threads than your system can handle > > OK - that's one person that agrees w/ me. I don't think anyone disagrees on that point. >> In general ca

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Robert Lehr
Thanks. See reponses inline. On Jun 10, 6:22 am, Toralf Wittner wrote: > On Wed, Jun 10, 2009 at 5:14 AM, Robert Lehr wrote: e in your system. > > > Q - What stops Clojure's agent send-off function from becoming a DOS > > ("denial of service") vulnerability in a server? > > As you noted, send-o

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Nathan Hawkins
On Wed, 10 Jun 2009 12:44:00 -0600 Daniel Lyons wrote: > On Jun 10, 2009, at 12:03 PM, Toralf Wittner wrote: > > On Wed, 2009-06-10 at 10:22 -0600, Daniel Lyons wrote: > >> If the actions are executed serially, what is the benefit of having > >> multiple threads per agent? > > > > There is none.

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Toralf Wittner
On Wed, 2009-06-10 at 12:44 -0600, Daniel Lyons wrote: > However, I still feel like I am not understanding when agents should > be used or what an appropriate use of them would constitute, though. Well, since agents run independently and asynchronously I found them to be most useful when you ha

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Daniel Lyons
On Jun 10, 2009, at 12:03 PM, Toralf Wittner wrote: > On Wed, 2009-06-10 at 10:22 -0600, Daniel Lyons wrote: >> If the actions are executed serially, what is the benefit of having >> multiple threads per agent? > > There is none. Did anybody say there are multiple threads per agent? > There are t

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Toralf Wittner
On Wed, 2009-06-10 at 10:22 -0600, Daniel Lyons wrote: > > On Jun 10, 2009, at 4:22 AM, Toralf Wittner wrote: > > As written above the serial execution of an Agent's actions makes this > > thread-safe. > > > If the actions are executed serially, what is the benefit of having > multiple thread

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Daniel Lyons
On Jun 10, 2009, at 4:22 AM, Toralf Wittner wrote: > As written above the serial execution of an Agent's actions makes this > thread-safe. If the actions are executed serially, what is the benefit of having multiple threads per agent? — Daniel Lyons http://www.storytotell.org -- Tell It! -

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Toralf Wittner
On Wed, Jun 10, 2009 at 5:14 AM, Robert Lehr wrote: > Q - What stops Clojure's agent send-off function from becoming a DOS > ("denial of service") vulnerability in a server? As you noted, send-off uses a cached thread pool, so there is no protection from creating more threads than your system can

Re: agent questions - DOS - asynchrony - protection

2009-06-10 Thread Meikel Brandmeyer
Hi, disclaimer: I'm only a hobbyist with almost no clue about the concurrency. So take this with a grain of salt. The following are only my expressions how this stuff works. Am 10.06.2009 um 05:14 schrieb Robert Lehr: Q - What stops Clojure's agent send-off function from becoming a DOS ("denia

Re: agent questions - DOS - asynchrony - protection

2009-06-09 Thread Robert Lehr
Thanks, Daniel. See responses inline. On Jun 10, 2:10 am, Daniel Lyons wrote: > Robert, > > You have some interesting questions. I'm going to share my impressions   > of the answers based on reading the website and the book. I am rather   > new to Clojure myself and I haven't read the source co

Re: agent questions - DOS - asynchrony - protection

2009-06-09 Thread Daniel Lyons
Robert, You have some interesting questions. I'm going to share my impressions of the answers based on reading the website and the book. I am rather new to Clojure myself and I haven't read the source code to it so perhaps any mistakes I make are representative of newbie pitfalls in gener

agent questions - DOS - asynchrony - protection

2009-06-09 Thread Robert Lehr
STUPID QUESTION TIME and another long post - sorry. Q - What stops Clojure's agent send-off function from becoming a DOS ("denial of service") vulnerability in a server? This possibility occurred to me after reading several source files. * Stuart Sierra's HTTP client code in clojure-contri