Closed Bug 767159 Opened 13 years ago Closed 13 years ago

remove synchronous DNS resolution in nsSOCKSIOLayer.cpp

Categories

(Core :: Networking: DNS, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: jaas, Assigned: mcmanus)

References

Details

(Whiteboard: [Snappy:P1])

Attachments

(1 file)

netwerk/socket/nsSOCKSIOLayer.cpp: 219 PRStatus 220 nsSOCKSSocketInfo::ConnectToProxy(PRFileDesc *fd) [...] 234 rv = dns->Resolve(mProxyHost, 0, getter_AddRefs(mDnsRec)); We probably shouldn't ever make synchronous DNS resolution calls, and we definitely shouldn't do it on the main thread. Removing this stuff is a high priority.
Attached patch patch 0Splinter Review
while I do some more testing lets call this WIP
Comment on attachment 636862 [details] [diff] [review] patch 0 confirmed behavior before/after patch matches for: * normal dns based proxy * ip based proxy * dns resolution that takes a long time * invalid host name * valid hostname, but invalid proxy Christian, do you have time to look at this?
Attachment #636862 - Flags: review?(cbiesinger)
Comment on attachment 636862 [details] [diff] [review] patch 0 nice :)
Attachment #636862 - Flags: review?(cbiesinger) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Depends on: 828761
No longer depends on: 828761
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: