stan fallon
2018-11-04 14:52:26 UTC
I'm having a bizarre problem with native messaging in Chrome. I wrote an
extension in which there is a Javascript calling a background script (also
written in Javascript), which in turn calls the native host (written in
c++). The background script sends a message to the native host which is
maybe 3000-4000 characters long. The native host receives it fine, and then
manipulates it. The converted message can be approximately 2800-4300
characters in length.
The native host then sends the converted message back to the background
script, but the latter never receives it! However, if the converted message
is around 2200 characters or less the background message receives it fine.
I've purposefully truncated the message in the native host to be 2200 chars
or less and see that the background script is receiving it.
Does anyone have any idea what this is? My understanding is that for native
messaging the payload size maximum is about 1 Meg. And here I indeed have
no problem sending 3000-4000 char length messages to the native host, but
can't seem to send similar lengths back. Is there some parameter I can
check/configure to remove this restriction?
Thank you
Stan
extension in which there is a Javascript calling a background script (also
written in Javascript), which in turn calls the native host (written in
c++). The background script sends a message to the native host which is
maybe 3000-4000 characters long. The native host receives it fine, and then
manipulates it. The converted message can be approximately 2800-4300
characters in length.
The native host then sends the converted message back to the background
script, but the latter never receives it! However, if the converted message
is around 2200 characters or less the background message receives it fine.
I've purposefully truncated the message in the native host to be 2200 chars
or less and see that the background script is receiving it.
Does anyone have any idea what this is? My understanding is that for native
messaging the payload size maximum is about 1 Meg. And here I indeed have
no problem sending 3000-4000 char length messages to the native host, but
can't seem to send similar lengths back. Is there some parameter I can
check/configure to remove this restriction?
Thank you
Stan
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/2fab6f2b-bf66-4568-b728-7d45bccd7121%40chromium.org.
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/2fab6f2b-bf66-4568-b728-7d45bccd7121%40chromium.org.