7e16cc15b5e16ec35f4c9f0516a6cacf90326856 |
|
01-Dec-2015 |
Erik Kline <ek@google.com> |
Switch from using sockaddr to sockaddr_storage. This is to ensure sufficient space is always available. Change-Id: Ifa87b93ecdc90dcacbfb24446c872344da6703d3
/system/core/libsysutils/src/SocketListener.cpp
|
55fd316ea798f2c77ad80def9f9b50d59391f1c2 |
|
02-Apr-2015 |
Jeff Sharkey <jsharkey@android.com> |
Give SocketListener some FD_CLOEXEC. Sockets love FD_CLOEXEC. Bug: 19993667 Change-Id: I0d72a27e0f46b79843bb91ed48ebaf1c89484fd2
/system/core/libsysutils/src/SocketListener.cpp
|
581edc1b6c3799238cfb674dfddb97db44f2818e |
|
20-Nov-2013 |
Mark Salyzyn <salyzyn@google.com> |
set /proc/sys/net/unix/max_dgram_qlen to large value - init: set /proc/sys/net/unix/max_dgram_qlen to 300 - libsysutils: Add listen backlog argument to startListener - logd: set listen backlog to 300 Change-Id: Id6d37d6c937ba2d221e76258d89c9516619caeec
/system/core/libsysutils/src/SocketListener.cpp
|
44b99c22af84331068935a9bc3e807165a88237c |
|
08-Jan-2014 |
Mark Salyzyn <salyzyn@google.com> |
libsysutils: SocketListener export release * Foreground thread (legacy) closes connection by reporting false return value for onDataAvailable. * Background thread can choose instead to close the connection asynchronously by calling release, must return true for the onDataAvailable method. (cherry picked from commit d7ad4e409eaac53db3a9789060097b712850b337) Change-Id: I70ab37d5c22b02804aa3b4dfb26cc9b75291f8b6
/system/core/libsysutils/src/SocketListener.cpp
|
23f04107dcedcef22556c1f57502cdddbfa2663f |
|
25-Jan-2012 |
Mark Salyzyn <salyzyn@google.com> |
libsysutils: Add iovec/runOnEachSocket SocketClient: * Replace sendDataLocked with sendDataLockedv which takes an iovec. * Add a version of sendData, sendDatav, which takes an iovec. * do not preserve iovec content through sendDatav SocketListener: * Add runOnEachSocket, which allows to to specify a SocketClientCommand to run individually on each socket. This allows you to do broadcast-like actions customized for each individual socket. * Client safe list reference counting for sendBroadcast & runOnEach Socket (cherry picked from commit a6e965578e44f8ae5f98de822ba5decec381d5fc) Signed-off-by: Nick Kralevich <nnk@google.com> Signed-off-by: Mark Salyzyn <salyzyn@google.com> Change-Id: I716f89c01b4cb7af900045c7e41fac1492defb06
/system/core/libsysutils/src/SocketListener.cpp
|
e16baef4d2f59c0b5f78e66c838d6c5e7d9b7363 |
|
22-Nov-2013 |
Mark Salyzyn <salyzyn@google.com> |
libsysutils: Get rid of warnings - UNUSED argument warnings - Remove LOG_NDEBUG define (cherry picked from commit 696f267ff5a1e6227c2f5784dae60c190e0228b8) Change-Id: I48b0942adfdb7a46a7693e580bc6ed5a685b0d5b
/system/core/libsysutils/src/SocketListener.cpp
|
8702bb17f40022e970e8acd40b348d074e39afc7 |
|
07-Feb-2012 |
Robert Greenwalt <rgreenwalt@google.com> |
New NativeDaemonConnector protocol adds a seqnum. Allows for one socket to be multiplexed for multiple requests. Doesn't use command sequence numbers for broadcasts - would make no sense. Doesn't alter current default behavior so OEM's using these classes won't notice a difference. bug:5864209 Change-Id: Ie3b19c4f81eea868569229a365c8cb7de249c2dd
/system/core/libsysutils/src/SocketListener.cpp
|
a8185a622e368d1957e18a3ee9d29d45eda12cfc |
|
08-Feb-2012 |
Guang Zhu <guangzhu@google.com> |
Revert "New NativeDaemonConnector protocol adds a seqnum." Reverting because it seems to break `adb reboot` This reverts commit dc58e73071aa829a5038caf37211f6b3e2d7b275. Change-Id: Ib8cc4379254694398cbb7f3e7a64c20e1ed8c1ba
/system/core/libsysutils/src/SocketListener.cpp
|
dc58e73071aa829a5038caf37211f6b3e2d7b275 |
|
07-Feb-2012 |
Robert Greenwalt <rgreenwalt@google.com> |
New NativeDaemonConnector protocol adds a seqnum. Allows for one socket to be multiplexed for multiple requests. bug:5864209 Change-Id: I934c88da25d95e093371f455442bdf2f0ed7a4f4
/system/core/libsysutils/src/SocketListener.cpp
|
4520246d3534c087f3e9253c34f99dd1e45b7bd7 |
|
28-Sep-2011 |
Xianzhu Wang <wangxianzhu@google.com> |
Fix SocketListener socket leak issue. The problem was: if a socket is shared between SocketListener and another thread, only if the last reference is removed by SocketListener can the socket be closed, otherwise the socket will leak. This sometimes happens in netd's dnsproxyd. This change let the SocketClient own the socket and close the socket when the SocketClient is destructed. Change-Id: I2865fbfe9ee4d8b3e43d7e02919dbb2d261f70de
/system/core/libsysutils/src/SocketListener.cpp
|
8795007a4aedb0860f6e7b838984ba8104f2febc |
|
27-Apr-2011 |
Vernon Tang <vt@foilhead.net> |
libsysutils: SocketListener: handle recv errors more gracefully. Don't close the socket when onDataAvailable returns false if the socket is connectionless. Change-Id: Ie19497f5928144c463d92aa72ba517e675549ea6
/system/core/libsysutils/src/SocketListener.cpp
|
3549b0dc2829184f9911d27a6ab0cf39b19764f1 |
|
18-Mar-2011 |
Brad Fitzpatrick <bradfitz@android.com> |
Fix potential race introduced in Icd7f5f03 Digit wrote: "You probably don't want to close the socket here without updating c->socket as well. Otherwise, another thread holding a handle to the client after the c->decRef() could end up sending a message to a different socket, if the file descriptor index is reused by another client in the meantime." Change-Id: Icdefb5ffc0c7607325d7db761e1f04e5d868bfb7
/system/core/libsysutils/src/SocketListener.cpp
|
13aa8ad44570bceef73115cea749b11f30888530 |
|
17-Mar-2011 |
Brad Fitzpatrick <bradfitz@android.com> |
SocketClient: add optional reference counting Needed to fix a race in netd. Bug: 3438459 Change-Id: Icd7f5f035510235f733a25c0621479d3e644b152
/system/core/libsysutils/src/SocketListener.cpp
|
15d09854a8b2a1adf2fa5123ff77b9882afd6c22 |
|
21-Jan-2011 |
David 'Digit' Turner <digit@google.com> |
libsysutils: Fix a file descriptor leak. The recent refactoring of the select() loop in SocketListener missed a close() of the file descriptor when the onDataAvailable() callback returns false. Change-Id: I767caefab4b98ab350f2db2497ee2bd630f20850
/system/core/libsysutils/src/SocketListener.cpp
|
100c0e2dab243da3a5351f1acbcdc560af10a405 |
|
17-Jan-2011 |
David 'Digit' Turner <digit@google.com> |
libsysutils: Fix race condition in SocketListener thread. + Handle EINTR in accept(), write() and select() + Fix a memory leak when deleting the mClients list + Fix typo in SocketListener.h Change-Id: Ie68bb3e2dbefe0dfdaa22a5cd06a42dbc4c0f8aa
/system/core/libsysutils/src/SocketListener.cpp
|
86d01dec4b8690d94053fbe86d46c9ae26de9ae6 |
|
14-Sep-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
Add missing lock in SocketListener. Change-Id: I3d97a06381fce67ef13b1ccdeaa4e8e2830ab2aa
/system/core/libsysutils/src/SocketListener.cpp
|
7e8529a8b528fd30586aa037f15a31b29582c537 |
|
25-Mar-2010 |
San Mehat <san@google.com> |
system/core: Switch libsysutils & sched_policy LOG -> SLOG Change-Id: Id74c6895a8012c5915f2e259339101844de7c085 Signed-off-by: San Mehat <san@google.com>
/system/core/libsysutils/src/SocketListener.cpp
|
c4a895b7094461c98101924cf096680bfb7856f1 |
|
24-Jun-2009 |
San Mehat <san@google.com> |
nexus: Rollup update for nexus nexus: Change field separator from : to ' ' Signed-off-by: San Mehat <san@google.com> nexus: Add some prototypes for stuff to come Signed-off-by: San Mehat <san@google.com> nexus: Add some TODOs Signed-off-by: San Mehat <san@google.com> libsysutils: Put a proper token parser into the FrameworkListener which supports minimal \ escapes and quotes Signed-off-by: San Mehat <san@google.com> nexus: Fix a lot of bugs Signed-off-by: San Mehat <san@google.com> libsysutils: Remove some debugging Signed-off-by: San Mehat <san@google.com> nexus: Send broadcasts for supplicant state changes Signed-off-by: San Mehat <san@google.com> nexus: Plumb DHCP listener state changes to NetworkManager Signed-off-by: San Mehat <san@google.com> nexus: Make the SupplicantState strings more parsable Signed-off-by: San Mehat <san@google.com> nexus: Broadcast a message when dhcp state changes. Signed-off-by: San Mehat <san@google.com> nexus: Add a few new response codes Signed-off-by: San Mehat <san@google.com> nexus: Rename ErrorCode -> ResponseCode Signed-off-by: San Mehat <san@google.com> nexus: Add DHCP event broadcasting. Also adds the framework for tracking supplicant 'searching-for-AP' state Signed-off-by: San Mehat <san@google.com> nexus: REmove WifiScanner Signed-off-by: San Mehat <san@google.com> nexus: Change the way scanning works. scanmode can now be selected independantly of triggering a scan. Also adds rxfilter support Signed-off-by: San Mehat <san@google.com> nexus: Add support for configuring bluetooth coexistence scanning and modes Signed-off-by: San Mehat <san@google.com> nexus: use case insensitive match for property names Signed-off-by: San Mehat <san@google.com> nexus: Rollup of a bunch of stuff: - 'list' command now takes an argument to match against - InterfaceConfig has been moved into the Controller base (for now) - DhcpClient now has some rudimentry locking - process 'ADDRINFO' messages from dhcpcd - Drop tertiary dns Signed-off-by: San Mehat <san@google.com> nexus: Clean up some of the supplicant variable parsing and add 'wifi.current' Signed-off-by: San Mehat <san@google.com> nexus: Add driver-stop/start, initial suspend support Signed-off-by: San Mehat <san@google.com> nexus: Add Controller suspend/resume callbacks, as well as locking Signed-off-by: San Mehat <san@google.com> nexus: Make ARP probing configurable for DhcpClient Signed-off-by: San Mehat <san@google.com> nexus: Add linkspeed / rssi retrieval Signed-off-by: San Mehat <san@google.com> nexus: Add WifiStatusPoller to track RSSI/linkspeed when associated Signed-off-by: San Mehat <san@google.com> nexus: Disable some debugging and add 'wifi.netcount' property Signed-off-by: San Mehat <san@google.com> nexus: Replace the hackish property system with something more flexible with namespaces Signed-off-by: San Mehat <san@google.com> libsysutils: Fix a few bugs in SocketListener Signed-off-by: San Mehat <san@google.com> nexus: PropertyManager: Add array support Signed-off-by: San Mehat <san@google.com> nexus: Clean up properties Signed-off-by: San Mehat <san@google.com> nexus: WifiController: Change name of 'CurrentNetwork' property Signed-off-by: San Mehat <san@google.com>
/system/core/libsysutils/src/SocketListener.cpp
|
c73a3a5771a2d29d1bae666bfde12f751d66fc96 |
|
15-Jun-2009 |
San Mehat <san@google.com> |
libsysutils: Move to a null terminated string protocol using space as a field separator. Also removes some debugging Signed-off-by: San Mehat <san@google.com>
/system/core/libsysutils/src/SocketListener.cpp
|
03f0d27f6c49530a91402ed42f8ca4b2fda04b9f |
|
27-May-2009 |
San Mehat <san@google.com> |
libsysutils: Fix command argument passing bug + whitespace cleanup Signed-off-by: San Mehat <san@google.com>
/system/core/libsysutils/src/SocketListener.cpp
|
db017545796747115b8797f03e662b0f398a7c7b |
|
21-May-2009 |
San Mehat <san@google.com> |
libsysutils: const correctness fixes + remove some debugging Signed-off-by: San Mehat <san@google.com>
/system/core/libsysutils/src/SocketListener.cpp
|
df6c1b91e3813886070f35929583c30cfaead918 |
|
13-May-2009 |
San Mehat <san@google.com> |
libsysutils: General clean up + disable build in simulator builds Signed-off-by: San Mehat <san@google.com>
/system/core/libsysutils/src/SocketListener.cpp
|
dbdb0db516fa4935ff7b5c05914932099237d808 |
|
13-May-2009 |
San Mehat <san@google.com> |
libsysutils: Fix bug where we'd leak our control pipes when closing down a listener Signed-off-by: San Mehat <san@google.com>
/system/core/libsysutils/src/SocketListener.cpp
|
d768066ef54270a0d3ccfccd50ae8238db5a2cdd |
|
12-May-2009 |
San Mehat <san@google.com> |
libsysutils: Tweak SocketListener and friends Signed-off-by: San Mehat <san@google.com>
/system/core/libsysutils/src/SocketListener.cpp
|
fa644ffe944c01a9b00f8d7676d58394fabee285 |
|
08-May-2009 |
San Mehat <san@google.com> |
libsysutils: Add multiple client support and fix some bugs
/system/core/libsysutils/src/SocketListener.cpp
|
168415b822cae1f8b54ef09c41c11a9b97b87f40 |
|
06-May-2009 |
San Mehat <san@google.com> |
libsysutils: New C++ system convenience library This library contains re-usable classes for common system level daemons. Initial consumers of this library are 'nexus' and 'vold2' Signed-off-by: San Mehat <san@google.com>
/system/core/libsysutils/src/SocketListener.cpp
|