[Webkit-unassigned] [Bug 27165] Connections-per-host should be tracked closer to the ResourceHandle level, not the Cache

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 22 16:29:02 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=27165





--- Comment #14 from Nate Chapin <japhet at chromium.org>  2010-09-22 16:29:01 PST ---
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #11)
> > > > WebCore/loader/OpenConnectionLimiter.cpp:70
> > > > +    requestsPerHostMap().set(host, requestsPerHostMap().get(host) + 1);
> > > 
> > > There's now operator[] on this object that returns a non-const reference?
> > > 
> > > requestsPerHostMap()[host]++ ?
> > 
> > Are you sure about this?  I can't find it anywhere in the HashMap implementation.
> 
> Sorry, that was meant as a question, but I fat-fingered "not" into "now".  :)

I no longer feel like I'm missing something obvious :)

HashMap doesn't have any functions that return a MappedType&, it appears to always be a copy.  I'll leave it as is unless you object strenuously.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list