libxpnet should not call gethostbyname more than once

VERIFIED INVALID

Status

VERIFIED INVALID
18 years ago
14 years ago

People

(Reporter: ssu0262, Assigned: slogan)

Tracking

Trunk
x86
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

18 years ago
libxpnet currently calls gethostbyname twice.  this is not necessary and could 
potentially take a longer time to resolve a host name.

The code should also not call gethostbyname for ip addresses, since it is not 
documented to be supported by gethostbyname.

Also, the pointer returned by gethostbyname is currently not being freed.
(Reporter)

Comment 1

18 years ago
not necessary for mozilla0.9.1
(Reporter)

Comment 2

18 years ago
I just looked at the code more closely.  It is necessary to do more than one
call to gethostbyname() because each call to it is being done when a new socket
is created.  this is correct behavior.

Marking this bug invalid.
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → INVALID

Comment 3

17 years ago
ok...
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.