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

Issue 10827362: Fix ChromeDriver flakiness with the C# webdriver bindings. (Closed)

Created:
8 years, 4 months ago by kkania
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix ChromeDriver flakiness with the C# webdriver bindings. Since keep-alive was disabled in r142538, C# webdriver tests have been failing occassionally saying no response was sent from chromedriver. This is because the .NET HttpWebRequest throws an exception when the server closes a connection without specifying Connection:close. This was reproducible on slower machines. This change refactors the http response process to funnel all responses through WriteHttpResponse, which adds the Connection:close header when appropriate. BUG=chromedriver:121 TEST=none TBR=ben Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152227

Patch Set 1 : '' #

Total comments: 8

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -107 lines) Patch
M chrome/chrome_tests.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/webdriver/http_response.h View 1 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/test/webdriver/http_response.cc View 1 4 chunks +45 lines, -22 lines 0 comments Download
M chrome/test/webdriver/http_response_unittest.cc View 1 chunk +10 lines, -18 lines 0 comments Download
M chrome/test/webdriver/webdriver_dispatch.cc View 13 chunks +27 lines, -48 lines 0 comments Download
M chrome/test/webdriver/webdriver_dispatch_unittest.cc View 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/test/webdriver/webdriver_server.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
A chrome/test/webdriver/webdriver_switches.h View 1 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/test/webdriver/webdriver_switches.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kkania
8 years, 4 months ago (2012-08-15 23:25:33 UTC) #1
dennis_jeffrey
a question and some nits http://codereview.chromium.org/10827362/diff/1010/chrome/test/webdriver/http_response.cc File chrome/test/webdriver/http_response.cc (right): http://codereview.chromium.org/10827362/diff/1010/chrome/test/webdriver/http_response.cc#newcode1 chrome/test/webdriver/http_response.cc:1: // Copyright (c) 2011 ...
8 years, 4 months ago (2012-08-16 01:17:13 UTC) #2
kkania
http://codereview.chromium.org/10827362/diff/1010/chrome/test/webdriver/http_response.h File chrome/test/webdriver/http_response.h (left): http://codereview.chromium.org/10827362/diff/1010/chrome/test/webdriver/http_response.h#oldcode75 chrome/test/webdriver/http_response.h:75: DISALLOW_COPY_AND_ASSIGN(HttpResponse); On 2012/08/16 01:17:13, dennis_jeffrey wrote: > why was ...
8 years, 4 months ago (2012-08-16 16:49:34 UTC) #3
dennis_jeffrey
LGTM http://codereview.chromium.org/10827362/diff/1010/chrome/test/webdriver/http_response.h File chrome/test/webdriver/http_response.h (right): http://codereview.chromium.org/10827362/diff/1010/chrome/test/webdriver/http_response.h#newcode1 chrome/test/webdriver/http_response.h:1: // Copyright (c) 2011 The Chromium Authors. All ...
8 years, 4 months ago (2012-08-16 17:27:07 UTC) #4
kkania
adding Ben for chrome/chrome.gypi
8 years, 4 months ago (2012-08-17 23:45:29 UTC) #5
kkania
On 2012/08/17 23:45:29, kkania wrote: > adding Ben for chrome/chrome.gypi oops, i mean chrome/chrome_tests.gypi
8 years, 4 months ago (2012-08-17 23:45:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/10827362/4003
8 years, 4 months ago (2012-08-18 00:48:26 UTC) #7
commit-bot: I haz the power
Change committed as 152227
8 years, 4 months ago (2012-08-18 02:58:35 UTC) #8
Ben Goodger (Google)
8 years, 4 months ago (2012-08-20 17:15:19 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698