Closed Bug 1158876 Opened 9 years ago Closed 9 years ago

Gonk socket I/O code always forwards data to main thread

Categories

(Firefox OS Graveyard :: General, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox40 fixed)

RESOLVED FIXED
2.2 S11 (1may)
Tracking Status
firefox40 --- fixed

People

(Reporter: tzimmermann, Assigned: tzimmermann)

References

Details

Attachments

(3 files, 1 obsolete file)

The socket I/O code in ipc/unixsocket always forwards received data to the main thread. This constraint must be removed if we want to optimize existing users or allow for new use cases, such as in BluetoothDaemonConnection.
Comment on attachment 8598076 [details] [diff] [review]
[01] Bug 1158876: Rename |SocketConsumerBase| to |DataSocket|

Review of attachment 8598076 [details] [diff] [review]:
-----------------------------------------------------------------

::: ipc/unixsocket/ListenSocket.cpp
@@ +137,5 @@
>  
> +DataSocket*
> +ListenSocketIO::GetDataSocket()
> +{
> +  return nullptr; // listen sockets cannot transfer data

Nit: Is it worth asserting here?
Attachment #8598076 - Flags: review?(kyle) → review+
Attachment #8598078 - Flags: review?(kyle) → review+
Attachment #8598079 - Flags: review?(kyle) → review+
Changes since v1:

  - crash when requesting |DataSocket| from |ListenSocketIO|
Attachment #8598076 - Attachment is obsolete: true
Attachment #8598482 - Flags: review+
Thanks a lot. I added MOZ_CRASH to |ListenSocketIO::GetDataSocket|, but this will be cleaned up in another, larger patch set.

https://treeherder.mozilla.org/#/jobs?repo=b2g-inbound&revision=7e28d47294b2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: