Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Issue 797253003: Make Python sync server stoppable (Closed)

Created:
5 years, 11 months ago by sigbjorn
Modified:
5 years, 11 months ago
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Python sync server stoppable The testserver attempts to inherit from StoppableHTTPServer, but then overrides the stoppable functionality. Instead of overriding serve_forever, override handle_request, to maintain stoppability. BUG= Committed: https://crrev.com/1e630129a6dbb309618c97d0b63a1c42d689e679 Cr-Commit-Position: refs/heads/master@{#310732}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Use StoppableServer, override handle_request instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -41 lines) Patch
M sync/tools/testserver/sync_testserver.py View 1 2 chunks +38 lines, -41 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
sigbjorn
Raghu, you seem to have written this file, could you review this, or suggest a ...
5 years, 11 months ago (2015-01-05 13:17:25 UTC) #2
pval...(no longer on Chromium)
I'm happy to review this, but you'll need OWNERS approval from someone else. https://codereview.chromium.org/797253003/diff/1/sync/tools/testserver/sync_testserver.py File ...
5 years, 11 months ago (2015-01-05 17:49:01 UTC) #4
sigbjorn
https://codereview.chromium.org/797253003/diff/1/sync/tools/testserver/sync_testserver.py File sync/tools/testserver/sync_testserver.py (right): https://codereview.chromium.org/797253003/diff/1/sync/tools/testserver/sync_testserver.py#newcode95 sync/tools/testserver/sync_testserver.py:95: self.stop = False On 2015/01/05 17:49:01, pvalenzuela wrote: > ...
5 years, 11 months ago (2015-01-06 08:11:27 UTC) #5
pval...(no longer on Chromium)
lgtm Raghu no longer works on Sync, so I'll let maniscalco@ provide the owner approval.
5 years, 11 months ago (2015-01-06 18:25:00 UTC) #7
maniscalco
I'm not too familiar with this code so bear with me... https://codereview.chromium.org/797253003/diff/1/sync/tools/testserver/sync_testserver.py File sync/tools/testserver/sync_testserver.py (right): ...
5 years, 11 months ago (2015-01-06 18:39:59 UTC) #8
sigbjorn
https://codereview.chromium.org/797253003/diff/1/sync/tools/testserver/sync_testserver.py File sync/tools/testserver/sync_testserver.py (right): https://codereview.chromium.org/797253003/diff/1/sync/tools/testserver/sync_testserver.py#newcode28 sync/tools/testserver/sync_testserver.py:28: class SyncHTTPServer(testserver_base.ClientRestrictingServerMixIn, On 2015/01/06 18:39:59, maniscalco wrote: > What's ...
5 years, 11 months ago (2015-01-07 09:26:34 UTC) #9
pval...(no longer on Chromium)
sigbjorn@, maniscalco@ and I discussed this change. We are wondering if it would be possible ...
5 years, 11 months ago (2015-01-07 21:43:32 UTC) #10
sigbjorn
(Don't think you guys get a mail unless I make an extraneous comment here.) Patch ...
5 years, 11 months ago (2015-01-08 09:06:38 UTC) #11
pval...(no longer on Chromium)
lgtm Cool! This is exactly what I had in mind; I think it's cleaner. Do ...
5 years, 11 months ago (2015-01-08 18:41:38 UTC) #12
maniscalco
On 2015/01/08 18:41:38, pvalenzuela wrote: > lgtm > > Cool! This is exactly what I ...
5 years, 11 months ago (2015-01-08 20:28:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/797253003/20001
5 years, 11 months ago (2015-01-09 07:59:24 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-09 08:02:56 UTC) #16
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 08:03:44 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1e630129a6dbb309618c97d0b63a1c42d689e679
Cr-Commit-Position: refs/heads/master@{#310732}

Powered by Google App Engine
This is Rietveld 408576698