Closed
Bug 192696
Opened 22 years ago
Closed 22 years ago
FreeBSD can't connect to a certain IPv6 site (sock-cond=80004005, nsHttpConnection::CloseTransaction)
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 186745
People
(Reporter: harunaga, Assigned: darin.moz)
References
()
Details
Attachments
(3 files)
FreeBSD build cannot connect to a certain site,
ex. http://www.jp.freebsd.org/
http.log:
http://bugzilla.mozilla.gr.jp/attachment.cgi?id=1489&action=view
This shows:
135852032[8162300]: nsHttpConnection::OnSocketWritable [this=89a6f80]
135852032[8162300]: writing transaction request stream
135852032[8162300]: ReadSegments returned [rv=0 count=444 read=0
sock-cond=80004005]
135852032[8162300]: nsHttpConnection::CloseTransaction[this=89a6f80
trans=8a71600 reason=80004005]
Confirming with 2003020323/FreeBSD 4.7-RELEASE and my personal build
using 09-Feb-2003 source.
2003011500/FreeBSD works, 2003011915/FreeBSD and later don't work.
(These build ID is JST: Japan Standard Time, +0900)
If I use IP address, I can connect to http://203.139.121.132/.
MacOS X build and Linux build don't have this problem.
This is FreeBSD only...
Comment 1•22 years ago
|
||
-> Http
Assignee: dougt → darin
Component: Networking → Networking: HTTP
QA Contact: benc → httpqa
| Assignee | ||
Comment 2•22 years ago
|
||
harunaga: have you tried a more recent build, say 2003-02-11?
| Reporter | ||
Comment 3•22 years ago
|
||
I built from CVS at Feb 12 06:31:44 PST.
But same behavior.
Nothing happens for http://www.jp.freebsd.org/.
| Assignee | ||
Comment 4•22 years ago
|
||
harunaga: presuming you built debug, can you enable these env variables before
running mozilla:
setenv NSPR_LOG_MODULES nsHttp:5,nsSocketTransport:5
setenv NSPR_LOG_FILE /tmp/log
repro this bug and upload /tmp/log to this bug report. thx!
| Reporter | ||
Comment 5•22 years ago
|
||
| Reporter | ||
Comment 6•22 years ago
|
||
It's similar.
I think Bug 193169 is a dup of this.
| Assignee | ||
Comment 7•22 years ago
|
||
looks like this might be a possible duplicate of bug 189965. that bug was fixed
yesterday.
harunaga: can you "cvs update" in netwerk/ and rebuild in netwerk/ to see if the
problem has been solved? thx!!
| Reporter | ||
Comment 8•22 years ago
|
||
Comment 9•22 years ago
|
||
This bug seems to happen with sites that have AAAA (IPv6 address entry) in DNS,
but the host can't access the IPv6 site (due to the routing problems or such).
Otherwise IPv6 access works (tried against IPv6 localhost site).
It's unknown if dropping IPv6 support from the FreeBSD kernel could work around
this.
Another site that cause this behavior: www.kame.net
| Assignee | ||
Comment 10•22 years ago
|
||
ok, the patch for bug 189965 was actually insufficient. it only fixed the
problem for windows platforms. bug 193267 contains a patch that fixes the error
reporting on linux as well. as a result, the code which tries different DNS
entries should be tickled. can someone please test the patch in bug 193267 to
verify that it fixes this bug as well? thx!
Depends on: 193267
| Reporter | ||
Comment 11•22 years ago
|
||
I applied the patch attachment 114758 [details] [diff] [review] of bug 193267 to CVS 2003021807.
But nothing happens for me on http://www.jp.freebsd.org/,
http://www.cfengine.org/ and http://www.kame.net/...
| Assignee | ||
Comment 12•22 years ago
|
||
hmm... NSPR seems to be generating PR_UNKNOWN_ERROR. i'm not sure what's going
on there.
| Assignee | ||
Comment 13•22 years ago
|
||
i suspect it is PR_Connect that is failing here, but if this worked before Jan
16, then i'm very confused.
Summary: FreeBSD can't connect to a certain site (sock-cond=80004005, nsHttpConnection::CloseTransaction) → FreeBSD can't connect to a certain IPv6 site (sock-cond=80004005, nsHttpConnection::CloseTransaction)
| Assignee | ||
Comment 14•22 years ago
|
||
removing dependency. it turns out that the old socket code mapped _any_ error
from PR_Connect (beside PR_IN_PROGRESS_ERROR or PR_WOULD_BLOCK_ERROR) to
NS_ERROR_CONNECTION_REFUSED. as a result, we'd try the next IP address. my
guess is that the reporter's DNS is configured to give back IPv6 addresses, but
the reporters machine probably doesn't have a route to the IPv6 address for
www.jp.freebsd.org or perhaps the reporters machine isn't configured to work
with IPv6. in the past the PR_UNKNOWN_ERROR would have been mapped
NS_ERROR_CONNECTION_REFUSED, and we would have just tried the next IP address
(the IPv4 one) and things would have just worked. i should probably do
something similar now.
No longer depends on: 193267
Comment 15•22 years ago
|
||
Mr. Harunaga: could you try the patch (attachment 112566 [details] [diff] [review])
in bug 186745?
That NSPR patch tells PR_GetIPNodeByName to not return
any IPv6 addresses if the machine is not configured with
an IPv6 network interface. Based on what Darin Fisher
said in comment 14, trying to connect to an IPv6 address
from a machine with no IPv6 network interface may be the
fundamental cause of the problem.
After you apply the patch to your source tree, you do not
need to rebuild Mozilla; you only need to rebuild NSPR as
follows:
# change directory to the top of your build tree
% cd nsprpub
% make clean
% make
Let me know if the patch solves the problem.
| Reporter | ||
Comment 16•22 years ago
|
||
This is solved by attachment 112566 [details] [diff] [review].
No problem on 3 sites above.
Thank you.
| Assignee | ||
Comment 17•22 years ago
|
||
*** This bug has been marked as a duplicate of 186745 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 18•22 years ago
|
||
attachment 112566 [details] [diff] [review] solves my problem.
but it seems to me Mozilla should try next IP address (like as before?)...
Comment 19•22 years ago
|
||
I think Mr. Harunaga has a good point. Although my
patch in bug 186745 eliminated the very source of
this problem, there seem to be some problems at higher
layers that is exposed by the underlying problem.
You need to log in
before you can comment on or make changes to this bug.
Description
•