|
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
Total comments: 8
|
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
|
Total messages: 9 (0 generated)
|