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

Issue 11430025: Shut down the engine when the last tab is closed (Closed)

Created:
Aug. 7, 2013, 1:14 p.m. by Felix Dahlke
Modified:
Aug. 13, 2013, 9:32 a.m.
Visibility:
Public.

Description

To make this possible, I had to keep the pipe connections open for each client instead of reconnecting for every single request. This change alone is worth merging, since it appears to speed things up.

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Thread safety #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -40 lines) Patch
M src/engine/Main.cpp View 1 3 chunks +41 lines, -10 lines 0 comments Download
M src/plugin/AdblockPlusClient.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M src/plugin/AdblockPlusClient.cpp View 1 4 chunks +28 lines, -26 lines 0 comments Download
M src/shared/Communication.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/shared/Communication.cpp View 2 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 8
Felix Dahlke
To make this possible, I had to keep the pipe connections open for each client ...
Aug. 7, 2013, 1:20 p.m. (2013-08-07 13:20:39 UTC) #1
Oleksandr
On 2013/08/07 13:20:39, Felix H. Dahlke wrote: > To make this possible, I had to ...
Aug. 8, 2013, 6:26 a.m. (2013-08-08 06:26:24 UTC) #2
Oleksandr
http://codereview.adblockplus.org/11430025/diff/3001/src/plugin/AdblockPlusClient.cpp File src/plugin/AdblockPlusClient.cpp (right): http://codereview.adblockplus.org/11430025/diff/3001/src/plugin/AdblockPlusClient.cpp#newcode119 src/plugin/AdblockPlusClient.cpp:119: enginePipe.reset(OpenEnginePipe()); Might it make sense to have some sort ...
Aug. 8, 2013, 6:26 a.m. (2013-08-08 06:26:31 UTC) #3
Felix Dahlke
http://codereview.adblockplus.org/11430025/diff/3001/src/plugin/AdblockPlusClient.cpp File src/plugin/AdblockPlusClient.cpp (right): http://codereview.adblockplus.org/11430025/diff/3001/src/plugin/AdblockPlusClient.cpp#newcode119 src/plugin/AdblockPlusClient.cpp:119: enginePipe.reset(OpenEnginePipe()); On 2013/08/08 06:26:31, Oleksandr wrote: > Might it ...
Aug. 8, 2013, 8:32 a.m. (2013-08-08 08:32:51 UTC) #4
Felix Dahlke
Found an issue, these changes make the Updater hang. Will fix that first.
Aug. 8, 2013, 9:51 a.m. (2013-08-08 09:51:00 UTC) #5
Felix Dahlke
Uploaded a new patch set. Now we're using the engine in a thread safe way, ...
Aug. 8, 2013, 1:46 p.m. (2013-08-08 13:46:47 UTC) #6
Oleksandr
On 2013/08/08 13:46:47, Felix H. Dahlke wrote: > Uploaded a new patch set. Now we're ...
Aug. 8, 2013, 1:56 p.m. (2013-08-08 13:56:43 UTC) #7
Wladimir Palant
Aug. 13, 2013, 9:32 a.m. (2013-08-13 09:32:33 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld