Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14)

Issue 2993042: Move the drift time correction from http response to pipeline

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 4 months ago by zhoresh
Modified:
15 years, 4 months ago
Reviewers:
johnfargo, dev-remailer
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk
Visibility:
Public.

Description

The time drift correction should only apply when fetching resource not for any creation of HttpResponse

Patch Set 1 #

Total comments: 6

Patch Set 2 : Update according to Fargo comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -45 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java View 1 5 chunks +45 lines, -3 lines 0 comments Download
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/HttpResponse.java View 3 chunks +0 lines, -11 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/http/DefaultRequestPipelineTest.java View 1 5 chunks +92 lines, -1 line 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/http/HttpResponseTest.java View 1 2 chunks +5 lines, -30 lines 0 comments Download

Messages

Total messages: 6
zhoresh
15 years, 4 months ago (2010-11-11 00:12:05 UTC) #1
johnfargo
http://codereview.appspot.com/2993042/diff/1/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java File java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java (right): http://codereview.appspot.com/2993042/diff/1/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java#newcode162 java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java:162: public static HttpResponse fixDriftTime(HttpResponse response) { 1. Please document ...
15 years, 4 months ago (2010-11-11 00:59:21 UTC) #2
zhoresh
http://codereview.appspot.com/2993042/diff/1/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java File java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java (right): http://codereview.appspot.com/2993042/diff/1/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java#newcode162 java/gadgets/src/main/java/org/apache/shindig/gadgets/http/DefaultRequestPipeline.java:162: public static HttpResponse fixDriftTime(HttpResponse response) { On 2010/11/11 00:59:21, ...
15 years, 4 months ago (2010-11-11 18:13:59 UTC) #3
zhoresh
Update according to Fargo comments
15 years, 4 months ago (2010-11-11 18:14:30 UTC) #4
johnfargo
LGTM The static time thing is something we should keep an eye on, but let's ...
15 years, 4 months ago (2010-11-11 18:19:00 UTC) #5
zhoresh
15 years, 4 months ago (2010-11-11 19:00:11 UTC) #6
I gues at this point the advantage of the time source is that it is
consistent, which improve calculation.
But it is still not great if you want a moving time.
I tried to set time for just the request pipeline, but that doesn't work
because the pipeline internally use HttpResponse which use different time.

Change submitted @r1034046


On Thu, Nov 11, 2010 at 10:18 AM, John Hjelmstad <johnfargo@gmail.com>wrote:

> LGTM
>
> The static time thing is something we should keep an eye on, but let's
> cross that bridge when we get to it.
>
>
> On Thu, Nov 11, 2010 at 10:14 AM, <zhoresh@gmail.com> wrote:
>
>> Update according to Fargo comments
>>
>>
>> http://codereview.appspot.com/2993042/
>>
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b