Bug 168637 - NetworkProcess: Stop disabling buffering when NETWORK_CACHE is disabled in build
Summary: NetworkProcess: Stop disabling buffering when NETWORK_CACHE is disabled in build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-20 22:30 PST by Carlos Garcia Campos
Modified: 2017-02-22 00:35 PST (History)
4 users (show)

See Also:


Attachments
Patch (1.74 KB, patch)
2017-02-20 22:32 PST, Carlos Garcia Campos
achristensen: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2017-02-20 22:30:42 PST
It was added in r193752 as part of bug #137692 to fix an infinite loop in network process that happened in EFL because they didn't enable the network cache at that time. I think that was actually a workaround, and it was added without any comment so it has stayed there even when EFL enabled disk cache, and now that is gone. Looking at current code I see no reason why buffering can't work with the disk cache disabled, so I think it's time to remove that workaround.
Comment 1 Carlos Garcia Campos 2017-02-20 22:32:34 PST
Created attachment 302231 [details]
Patch
Comment 2 Csaba Osztrogonác 2017-02-20 22:53:14 PST
(In reply to comment #0)
> It was added in r193752 as part of bug #137692 to fix an infinite loop in
> network process that happened in EFL because they didn't enable the network
> cache at that time. I think that was actually a workaround, and it was added
> without any comment so it has stayed there even when EFL enabled disk cache,
> and now that is gone. Looking at current code I see no reason why buffering
> can't work with the disk cache disabled, so I think it's time to remove that
> workaround.

Have you tried it out with disabled network cache or do you just think that it will work?
Comment 3 Carlos Garcia Campos 2017-02-20 22:59:54 PST
(In reply to comment #2)
> (In reply to comment #0)
> > It was added in r193752 as part of bug #137692 to fix an infinite loop in
> > network process that happened in EFL because they didn't enable the network
> > cache at that time. I think that was actually a workaround, and it was added
> > without any comment so it has stayed there even when EFL enabled disk cache,
> > and now that is gone. Looking at current code I see no reason why buffering
> > can't work with the disk cache disabled, so I think it's time to remove that
> > workaround.
> 
> Have you tried it out with disabled network cache or do you just think that
> it will work?

Nope, I've just read the buffering code in the network process.
Comment 4 Carlos Garcia Campos 2017-02-22 00:35:36 PST
Committed r212816: <http://trac.webkit.org/changeset/212816>