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

Issue 23456045: [NaCl SDK] nacl_io: Add initial support for getsockopt (Closed)

Created:
7 years, 2 months ago by Sam Clegg
Modified:
7 years, 2 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[NaCl SDK] nacl_io: Add initial support for getsockopt Currently there is only support for SO_ERROR which is used to query the result of non-blocking calls to connect(). Since out connect() is always blocking right now this always returns 0. Also fix a bug in kernel_proxy:socket() where EACCESS was being returned rather than -1 (with errno set to EACCESS). BUG=296972 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226482

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : nits #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -26 lines) Patch
M native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc View 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 2 3 5 chunks +24 lines, -14 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_node_socket.h View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc View 1 2 3 4 2 chunks +16 lines, -3 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_node_tcp.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/tests/nacl_io_socket_test/socket_test.cc View 1 2 3 2 chunks +29 lines, -1 line 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/socket_test.cc View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Sam Clegg
7 years, 2 months ago (2013-09-27 18:19:12 UTC) #1
noelallen_use_chromium
Do you want to add Set as well, and the setup the RX/TX timeouts? The ...
7 years, 2 months ago (2013-09-27 22:04:22 UTC) #2
noelallen_use_chromium
Once you add set, you can then also add the approprate kernel proxy test, and ...
7 years, 2 months ago (2013-09-27 22:05:27 UTC) #3
Sam Clegg
On 2013/09/27 22:04:22, noelallen wrote: > Do you want to add Set as well, and ...
7 years, 2 months ago (2013-09-28 00:31:03 UTC) #4
Sam Clegg
ping
7 years, 2 months ago (2013-09-30 15:17:25 UTC) #5
noelallen1
MountNodeStream has a read_timeout_ and write_timeout_. If you check RecvHelper and SendHelper in MountNodeSocket they ...
7 years, 2 months ago (2013-09-30 16:22:50 UTC) #6
binji
https://codereview.chromium.org/23456045/diff/9001/native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc File native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc (right): https://codereview.chromium.org/23456045/diff/9001/native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc#newcode212 native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc:212: if (*len < sizeof(int)) http://pubs.opengroup.org/onlinepubs/009695399/functions/getsockopt.html It says here that ...
7 years, 2 months ago (2013-09-30 16:37:47 UTC) #7
Sam Clegg
https://codereview.chromium.org/23456045/diff/9001/native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc File native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc (right): https://codereview.chromium.org/23456045/diff/9001/native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc#newcode212 native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc:212: if (*len < sizeof(int)) On 2013/09/30 16:37:48, binji wrote: ...
7 years, 2 months ago (2013-09-30 17:33:24 UTC) #8
Sam Clegg
On 2013/09/30 16:22:50, noelallen1 wrote: > MountNodeStream has a read_timeout_ and write_timeout_. > > If ...
7 years, 2 months ago (2013-09-30 17:34:44 UTC) #9
noelallen1
We don't need to land the timeout stuff here. As long as we add a ...
7 years, 2 months ago (2013-09-30 19:10:41 UTC) #10
Sam Clegg
Added some tests for getsockopt/setsockopt. Also, fixed a bug in kernel_proxy:socket() (see CL desc). PTAL.
7 years, 2 months ago (2013-09-30 22:36:27 UTC) #11
noelallen1
Good catch on the socket fix. https://codereview.chromium.org/23456045/diff/25001/native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc File native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc (right): https://codereview.chromium.org/23456045/diff/25001/native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc#newcode218 native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc:218: Clear last_errno_: The ...
7 years, 2 months ago (2013-09-30 22:56:16 UTC) #12
Sam Clegg
https://codereview.chromium.org/23456045/diff/25001/native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc File native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc (right): https://codereview.chromium.org/23456045/diff/25001/native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc#newcode218 native_client_sdk/src/libraries/nacl_io/mount_node_socket.cc:218: On 2013/09/30 22:56:16, noelallen1 wrote: > Clear last_errno_: > ...
7 years, 2 months ago (2013-10-01 00:15:49 UTC) #13
binji
7 years, 2 months ago (2013-10-02 05:18:41 UTC) #14
binji
On 2013/10/02 05:18:41, binji wrote: Sorry, lgtm
7 years, 2 months ago (2013-10-02 05:19:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sbc@chromium.org/23456045/38001
7 years, 2 months ago (2013-10-02 16:42:19 UTC) #16
commit-bot: I haz the power
Change committed as 226482
7 years, 2 months ago (2013-10-02 17:12:12 UTC) #17
noelallen1
7 years, 2 months ago (2013-10-02 17:14:28 UTC) #18
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698