Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #16509 > unrolled thread

Re: platform issues?

Started by"Adrian Powell" <adrianp@bringtechnology.com>
First post2011-12-01 13:43 -0500
Last post2011-12-01 19:03 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Re: platform issues? "Adrian Powell" <adrianp@bringtechnology.com> - 2011-12-01 13:43 -0500
    Re: platform issues? Redcat <redcat@catfolks.net> - 2011-12-01 19:03 +0000

#16509 — Re: platform issues?

From"Adrian Powell" <adrianp@bringtechnology.com>
Date2011-12-01 13:43 -0500
SubjectRe: platform issues?
Message-ID<mailman.3206.1322765028.27778.python-list@python.org>
to run the tests, I sit at my dev machine and SSH to the server where I can copy & paste the test case directly into the python interpreter. If there's a typo, it's going to both of them equally.

I am concerned about the name lookup since our servers have had some network glitches in the past and I'm not confident in our DNS. We can browse the net on the server without a problem but to be sure, I tried this:

On the server:

>>> socket.gethostbyaddr(socket.gethostbyname('www.google.com'))
('yyz06s07-in-f20.1e100.net', [], ['74.125.226.84'])
>>> socket.gethostbyaddr(socket.gethostbyname('www.twitter.com'))
('www2.twitter.com', [], ['199.59.149.198'])

On the dev environment:

>>> socket.gethostbyaddr(socket.gethostbyname('www.google.com'))
('sea09s02-in-f16.1e100.net', [], ['173.194.33.48'])
>>> socket.gethostbyaddr(socket.gethostbyname('www.twitter.com'))
('www4.twitter.com', [], ['199.59.149.230'])


Since I'm actually trying to write a twitter client, I was more focused on the results from twitter. Since google and twitter are so huge and so distributed, I'd bet neither are good tests for this, but they look approximately right.

Are there better ways to test if our network setup is good? At least that would be a relatively easy thing to fix.

Adrian.


-----Original Message-----
From: "Redcat" [redcat@catfolks.net]
Date: 12/01/2011 01:05 PM
To: python-list@python.org
Subject: Re: platform issues?

> Our servers have the same version of python and we're running the same
> OS (Fedora 14). Can anyone think of what might be causing this problem,
> or why it works on most (but not all) machines?
> 
> Thanks

Is the server able to resolve www.google.com properly? If so, are you 
POSITIVE that the "url = " line on the server has no typos?
-- 
http://mail.python.org/mailman/listinfo/python-list

[toc] | [next] | [standalone]


#16510

FromRedcat <redcat@catfolks.net>
Date2011-12-01 19:03 +0000
Message-ID<9jq1chFug2U10@mid.individual.net>
In reply to#16509
On Thu, 01 Dec 2011 13:43:38 -0500, Adrian Powell wrote:

> Since I'm actually trying to write a twitter client, I was more focused
> on the results from twitter. Since google and twitter are so huge and so
> distributed, I'd bet neither are good tests for this, but they look
> approximately right.
> 
> Are there better ways to test if our network setup is good? At least
> that would be a relatively easy thing to fix.

I think I'd first try "dig www.google.com" to be sure that it is 
resolving, then I believe I'd try to fetch the URL from your code sample 
using cUrl. If both of those work then I'm not sure what I'd look at next.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web