Closed
Bug 979138
Opened 11 years ago
Closed 11 years ago
No way to add more Toplevel protocols after Nuwa's enable
Categories
(Core :: IPC, defect)
Core
IPC
Tracking
()
RESOLVED
DUPLICATE
of bug 910010
People
(Reporter: chiajung, Unassigned)
Details
Attachments
(1 file)
1.11 KB,
patch
|
Details | Diff | Splinter Review |
Since Nuwa will trigger a CloneToplevel IPC, which contains a Fd mapping array, and current toplevel are: PCompositor, PImageBridge, PContent, PBackground, which fits the fd limit in 1 IPC message, so it works.
However, for performance consideration, we are implementing a new top level protocol in Bug 959089, and it cause B2G crash endlessly.
By changing http://dxr.mozilla.org/mozilla-central/source/ipc/chromium/src/chrome/common/file_descriptor_set_posix.h#33 to 5, it does work quiet well.
Comment 1•11 years ago
|
||
The limit of 4 looks quite arbitrary. I don't see scm(3) or sendmsg(2) mentioning limitation of the number of file descriptors passed. I don't see any reason we can't increase the limit.
Reporter | ||
Comment 2•11 years ago
|
||
I think the limitation of 4 is a random pick.
Increase the limitation make it possible to add 1 more top level protocol, without much change.
Attachment #8385141 -
Flags: review?(bent.mozilla)
Comment on attachment 8385141 [details] [diff] [review]
patch
Review of attachment 8385141 [details] [diff] [review]:
-----------------------------------------------------------------
This will just happen again the next time someone adds a new protocol, right? We should figure out a better way to do this IMO.
Attachment #8385141 -
Flags: review?(bent.mozilla)
See bug 910010 also.
Reporter | ||
Comment 5•11 years ago
|
||
(In reply to ben turner [:bent] (use the needinfo? flag!) from comment #3)
> Comment on attachment 8385141 [details] [diff] [review]
> patch
>
> Review of attachment 8385141 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> This will just happen again the next time someone adds a new protocol,
> right? We should figure out a better way to do this IMO.
Sure! Since I have no idea about how Nuwa work, and where triggers the IPC that pass fd, I can only workaround it here.
As bug 910010 seems the right way to do this, just mark this as duplicate.
Thanks for the infomation!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•