On Nov 19, 1:22 pm, jhaagmans <jaap.haagm...@gmail.com> wrote:
> Hi Fred,
>
> Thanks for your response. I hope you can answer three questions about
> this.
>
> - Why is it that pharrington's example did work, even though the hosts
> he used (I copied them) were never resolved before on my server? I
> should have had the same problem, right?
>
maybe, maybe not - not sure what varies between different dns lookups.

> - I've used net-dns before because what I really want to do is check a
> domain for existence in the DNS-records of a certain server. However,
> the problem with this is that because of the TTL, when I query a
> domain every hour, a domain that has been deleted from the DNS doesn't
> really get deleted from the "visible" records for 4 - 24 hours. That's
> something I really need to work around, do you have an idea how I can
> get that to work?

Are you really working around it by using net/http ?

>
> - Why is it that most of the logged messages are 10 seconds apart?
> That should tell me something, but I'm unsure what.
>
Is this still inside backgroundrb  or have you managed to reproduce
this outside background rb ?

Fred

> Thanks again.
>
> Jaap
>
> On 19 nov, 14:07, Frederick Cheung <frederick.che...@gmail.com> wrote:
>
>
>
> > On Nov 19, 11:00 am, jhaagmans <jaap.haagm...@gmail.com> wrote:
>
> > > I'm a little further on this. I've started logging the process instead
> > > of writing to ActiveRecord. This is my code:
> > > As you can see, it does do -some- threading, but it finishes requests
> > > only once every 10 seconds or so. What am I doing wrong? pharrington's
> > > example works for me, but this one doesn't.
>
> > Some things can block the entire ruby VM - you may be falling foul of
> > one of them. In particular, domain name resolution can do that (there
> > is a pure ruby dns resolver which doesn't have that caveat)
>
> > Fred

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=.


Reply via email to