Re: [ZODB-Dev] speeding up zdctl/zdrun start

2007-06-21 Thread Daniel Drake
On Thu, 2007-06-21 at 11:50 -0400, Jim Fulton wrote: > I'm fine with a change like this, or like your latest patch. I don't > have time to apply it. Why not become a contributor and apply it > yourself? :) Thanks, although I think a legal agreement would be overkill for such a small change a

Re: [ZODB-Dev] speeding up zdctl/zdrun start

2007-06-21 Thread Jim Fulton
On Jun 21, 2007, at 11:39 AM, Daniel Drake wrote: Hi Jim, On Wed, 2007-06-13 at 10:49 -0400, Daniel Drake wrote: But, I see that the latest zdaemon only tries for 10 seconds and then gives up anyway, which would avoid this problem. So you could either change the sleep to 0.1s and increase the

Re: [ZODB-Dev] speeding up zdctl/zdrun start

2007-06-21 Thread Daniel Drake
Hi Jim, On Wed, 2007-06-13 at 10:49 -0400, Daniel Drake wrote: > But, I see that the latest zdaemon only tries for 10 seconds and then > gives up anyway, which would avoid this problem. So you could either > change the sleep to 0.1s and increase the "n > 10" check to "n > 100", > or you might cons

Re: [ZODB-Dev] speeding up zdctl/zdrun start

2007-06-13 Thread Daniel Drake
On Wed, 2007-06-13 at 10:49 -0400, Daniel Drake wrote: > But, I see that the latest zdaemon only tries for 10 seconds and then > gives up anyway, which would avoid this problem. So you could either > change the sleep to 0.1s and increase the "n > 10" check to "n > 100", > or you might consider some

Re: [ZODB-Dev] speeding up zdctl/zdrun start

2007-06-13 Thread Daniel Drake
On Fri, 2007-06-08 at 17:51 -0400, Jim Fulton wrote: > Wouldn't it be a lot simpler to simply sleep less? It sounds like > sleeping .1 would speed it up by a factor of 10. :) Yes, that's true. I was worried that this would result in a '.' being printed to the screen 10 times a second in some fa

Re: [ZODB-Dev] speeding up zdctl/zdrun start

2007-06-08 Thread Jim Fulton
On Jun 8, 2007, at 5:43 PM, Daniel Drake wrote: Hi, Starting the database through zdrun is quite slow, as it always ends up sleeping for at least 1 second: - zdctl spawns zdrun - zdctl immediately tries to connect to the unix socket - unix socket is not ready or non-existent - zdctl sle

[ZODB-Dev] speeding up zdctl/zdrun start

2007-06-08 Thread Daniel Drake
Hi, Starting the database through zdrun is quite slow, as it always ends up sleeping for at least 1 second: - zdctl spawns zdrun - zdctl immediately tries to connect to the unix socket - unix socket is not ready or non-existent - zdctl sleeps for 1 second - zdctl retries the connection The