Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 10102005: ABP/Android Process chunked requests (Closed)

Created:
April 5, 2013, 1:45 p.m. by Andrey Novikov
Modified:
April 10, 2013, 8:31 a.m.
Visibility:
Public.

Description

ABP/Android Process chunked requests

Patch Set 1 #

Total comments: 15

Patch Set 2 : ABP/Android Process chunked requests #

Total comments: 1

Patch Set 3 : ABP/Android Process chunked requests #

Patch Set 4 : ABP/Android Process chunked requests #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -2 lines) Patch
M src/org/adblockplus/android/ProxyService.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/org/adblockplus/brazil/RequestHandler.java View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/sunlabs/brazil/server/Request.java View 1 chunk +1 line, -1 line 0 comments Download
M src/sunlabs/brazil/util/http/HttpRequest.java View 1 2 3 4 chunks +85 lines, -0 lines 5 comments Download

Messages

Total messages: 12
Andrey Novikov
April 5, 2013, 1:46 p.m. (2013-04-05 13:46:28 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/10102005/diff/1/src/org/adblockplus/brazil/RequestHandler.java File src/org/adblockplus/brazil/RequestHandler.java (right): http://codereview.adblockplus.org/10102005/diff/1/src/org/adblockplus/brazil/RequestHandler.java#newcode188 src/org/adblockplus/brazil/RequestHandler.java:188: target.setHttpInputStream(request.in); I don't think we want to do that ...
April 5, 2013, 2:27 p.m. (2013-04-05 14:27:09 UTC) #2
Andrey Novikov
http://codereview.adblockplus.org/10102005/diff/1/src/org/adblockplus/brazil/RequestHandler.java File src/org/adblockplus/brazil/RequestHandler.java (right): http://codereview.adblockplus.org/10102005/diff/1/src/org/adblockplus/brazil/RequestHandler.java#newcode188 src/org/adblockplus/brazil/RequestHandler.java:188: target.setHttpInputStream(request.in); On 2013/04/05 14:27:09, Wladimir Palant wrote: > I ...
April 5, 2013, 2:34 p.m. (2013-04-05 14:34:27 UTC) #3
Andrey Novikov
http://codereview.adblockplus.org/10102005/diff/6001/src/org/adblockplus/android/ProxyService.java File src/org/adblockplus/android/ProxyService.java (right): http://codereview.adblockplus.org/10102005/diff/6001/src/org/adblockplus/android/ProxyService.java#newcode855 src/org/adblockplus/android/ProxyService.java:855: // TODO Should we use ConnectivityManagerCompat.getNetworkInfoFromBroadcast() instead? Disregard this, ...
April 9, 2013, 7:42 a.m. (2013-04-09 07:42:10 UTC) #4
Wladimir Palant
http://codereview.adblockplus.org/10102005/diff/1/src/sunlabs/brazil/util/http/HttpRequest.java File src/sunlabs/brazil/util/http/HttpRequest.java (right): http://codereview.adblockplus.org/10102005/diff/1/src/sunlabs/brazil/util/http/HttpRequest.java#newcode677 src/sunlabs/brazil/util/http/HttpRequest.java:677: this.cs = cs; On 2013/04/05 14:34:28, Andrey Novikov wrote: ...
April 9, 2013, 7:44 a.m. (2013-04-09 07:44:45 UTC) #5
Andrey Novikov
April 9, 2013, 8:01 a.m. (2013-04-09 08:01:08 UTC) #6
Andrey Novikov
http://codereview.adblockplus.org/10102005/diff/1/src/sunlabs/brazil/util/http/HttpRequest.java File src/sunlabs/brazil/util/http/HttpRequest.java (right): http://codereview.adblockplus.org/10102005/diff/1/src/sunlabs/brazil/util/http/HttpRequest.java#newcode929 src/sunlabs/brazil/util/http/HttpRequest.java:929: getChunkSize(HttpInputStream is) What's the reason? I have copied it ...
April 9, 2013, 8:03 a.m. (2013-04-09 08:03:56 UTC) #7
Wladimir Palant
http://codereview.adblockplus.org/10102005/diff/1/src/sunlabs/brazil/util/http/HttpRequest.java File src/sunlabs/brazil/util/http/HttpRequest.java (right): http://codereview.adblockplus.org/10102005/diff/1/src/sunlabs/brazil/util/http/HttpRequest.java#newcode929 src/sunlabs/brazil/util/http/HttpRequest.java:929: getChunkSize(HttpInputStream is) On 2013/04/09 08:03:56, Andrey Novikov wrote: > ...
April 9, 2013, 8:31 a.m. (2013-04-09 08:31:55 UTC) #8
Andrey Novikov
http://codereview.adblockplus.org/10102005/diff/1/src/sunlabs/brazil/util/http/HttpRequest.java File src/sunlabs/brazil/util/http/HttpRequest.java (right): http://codereview.adblockplus.org/10102005/diff/1/src/sunlabs/brazil/util/http/HttpRequest.java#newcode929 src/sunlabs/brazil/util/http/HttpRequest.java:929: getChunkSize(HttpInputStream is) But this is the same file. :) ...
April 9, 2013, 8:46 a.m. (2013-04-09 08:46:09 UTC) #9
Felix Dahlke
Some nits, but otherwise LGTM http://codereview.adblockplus.org/10102005/diff/17001/src/sunlabs/brazil/util/http/HttpRequest.java File src/sunlabs/brazil/util/http/HttpRequest.java (right): http://codereview.adblockplus.org/10102005/diff/17001/src/sunlabs/brazil/util/http/HttpRequest.java#newcode885 src/sunlabs/brazil/util/http/HttpRequest.java:885: if (encoding != null ...
April 9, 2013, 9:16 a.m. (2013-04-09 09:16:48 UTC) #10
Andrey Novikov
http://codereview.adblockplus.org/10102005/diff/17001/src/sunlabs/brazil/util/http/HttpRequest.java File src/sunlabs/brazil/util/http/HttpRequest.java (right): http://codereview.adblockplus.org/10102005/diff/17001/src/sunlabs/brazil/util/http/HttpRequest.java#newcode885 src/sunlabs/brazil/util/http/HttpRequest.java:885: if (encoding != null && encoding.equals("chunked") && cs != ...
April 10, 2013, 8:30 a.m. (2013-04-10 08:30:30 UTC) #11
Felix Dahlke
April 10, 2013, 8:31 a.m. (2013-04-10 08:31:57 UTC) #12
Sure, LGTM.

On 2013/04/10 08:30:30, Andrey Novikov wrote:
>
http://codereview.adblockplus.org/10102005/diff/17001/src/sunlabs/brazil/util...
> File src/sunlabs/brazil/util/http/HttpRequest.java (right):
> 
>
http://codereview.adblockplus.org/10102005/diff/17001/src/sunlabs/brazil/util...
> src/sunlabs/brazil/util/http/HttpRequest.java:885: if (encoding != null &&
> encoding.equals("chunked") && cs != null)
> On 2013/04/09 09:16:48, Felix H. Dahlke wrote:
> > You could just do '"chunked".equals(encoding)' to avoid the null check.
> 
> Done.
> 
>
http://codereview.adblockplus.org/10102005/diff/17001/src/sunlabs/brazil/util...
> src/sunlabs/brazil/util/http/HttpRequest.java:950: } while ((line != null) &&
> (line.length() == 0));
> This was copied from another part of Brazil, I'll keep it as is for
consistency.

Powered by Google App Engine
This is Rietveld