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

Issue 2751123003: Shorten SingletonSocket filename, makes socket length limit harder to hit. (Closed)

Created:
3 years, 9 months ago by mattm
Modified:
3 years, 8 months ago
Reviewers:
Nico
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shorten SingletonSocket filename, makes socket length limit harder to hit. (This only affects the name of the actual socket file which is located in a temp directory. The SingletonSocket symlink in the user-data-dir keeps the full length name for comprehensibility.) BUG=698759

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M chrome/browser/process_singleton_posix.cc View 1 chunk +1 line, -1 line 2 comments Download
M chrome/common/chrome_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
mattm
3 years, 9 months ago (2017-03-15 21:17:40 UTC) #5
mattm
ping (should be a simple review) Thanks!
3 years, 9 months ago (2017-03-17 17:00:56 UTC) #8
Nico
Sorry! The question below possibly suggests that I'm not qualified to review this, up to ...
3 years, 9 months ago (2017-03-17 19:31:49 UTC) #9
mattm
https://codereview.chromium.org/2751123003/diff/1/chrome/browser/process_singleton_posix.cc File chrome/browser/process_singleton_posix.cc (right): https://codereview.chromium.org/2751123003/diff/1/chrome/browser/process_singleton_posix.cc#newcode722 chrome/browser/process_singleton_posix.cc:722: socket_path_ = user_data_dir.Append(chrome::kSingletonSocketFilename); On 2017/03/17 19:31:49, Nico wrote: > ...
3 years, 9 months ago (2017-03-17 22:20:19 UTC) #10
Nico
Ok, I read the bug. This seems like it doesn't help all that much and ...
3 years, 9 months ago (2017-03-17 22:43:00 UTC) #11
mattm
On 2017/03/17 22:43:00, Nico wrote: > Ok, I read the bug. This seems like it ...
3 years, 9 months ago (2017-03-17 22:53:49 UTC) #12
iannucci
On 2017/03/17 22:53:49, mattm wrote: > On 2017/03/17 22:43:00, Nico wrote: > > Ok, I ...
3 years, 9 months ago (2017-03-24 00:28:52 UTC) #13
iannucci
3 years, 9 months ago (2017-03-24 00:42:40 UTC) #14
On 2017/03/24 00:28:52, iannucci wrote:
> On 2017/03/17 22:53:49, mattm wrote:
> > On 2017/03/17 22:43:00, Nico wrote:
> > > Ok, I read the bug. This seems like it doesn't help all that much and
seems
> > > pretty hacky, and it looks like it was introduced by iannucci's TMPDIR
> thing.
> > > How about we do this instead:
> > > 
> > > - use CHROMIUM_TEMPDIR_FOR_BOTS if it's set
> > > - use NSTemporaryDirectory() if not as before
> > > - set CHROMIUM_TEMPDIR_FOR_BOTS on bots
> > > 
> > > That way, we don't change behavior in prod and probably dodge a whole list
> of
> > > issues, and bots still get to override this dir.
> > 
> > That sounds look a good plan for that bug, if mac people are fine with
TMPDIR
> > not being honored.
> > 
> > We still do honor TMPDIR on linux, so I think this could be generally useful
> > anyway. Though the socket length limit hasn't caused too much noise before,
so
> > I'm not too set on this CL if we fix the mac issue a different way.
> 
> FWIW, we could definitely set a different envvar too; the only reason I used
> TMPDIR
> was because we do honor it on linux and I thought consistency might be good.
> 
> Should I make that change?

Basically; should we land this change, or should I add a funky envvar instead?

Powered by Google App Engine
This is Rietveld 408576698