Welcome! Log In Create A New Profile

Advanced

Re: location = precedence breakage

December 16, 2009 12:38PM
On Wed, 16 Dec 2009 10:01:00 -0500, Igor Sysoev <igor@sysoev.ru> wrote:

> What is the "socket error" ?

The kind produced by sending packets to non-existent host, as caused by bone-headed stupid mistake I made. Not that it helps, but I deeply apologize to have wasted your time.

In case of curiosity or desire to know truth:

CGI hardcoded hostname for URLs. (Mistake #1: Bad/lazy design.) Old test server had entry in hosts file, thus lookup returned IP address instead of NXDOMAIN. New test server has different name/ip. When I test following dummy links from base page, user-agent waits awhile, then says ``socket error'' (actual cause: TCP SYN goes out, nothing comes back).

Since only difference (I thought) is in nginx version and two nginx.conf location blocks, I focus on that without looking at hostname in address bar. (More mistakes: Snap judgments and failure to attend too-obvious details.) I spend about 10-20 minutes trying all different nginx options, then hit mailing list.

I find error after you ask what socket error is, and try different user-agent from different host with more debugging ability. No entry in hosts file there; now I get NXDOMAIN, which points me to error. I fix CGI, and everything works perfectly. nginx is innocent.

I am very severe against people for exactly this kind of mistake. I hang my head in shame, now. At least you should know the truth (painful as it is for me to say it), and not waste any more valuable time on it.
Subject Author Posted

location = precedence breakage

kyleb December 16, 2009 08:48AM

Re: location = precedence breakage

kyleb December 16, 2009 08:55AM

Re: location = precedence breakage

Igor Sysoev December 16, 2009 09:00AM

Re: location = precedence breakage

kyleb December 16, 2009 09:19AM

Re: location = precedence breakage

Igor Sysoev December 16, 2009 10:06AM

Re: location = precedence breakage

kyleb December 16, 2009 12:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready