Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb9e1c45 authored by Lee Shombert's avatar Lee Shombert
Browse files

Increase sysprop timeout

Change the sysprop socket timeout from 2000ms to 5000ms.  This has no
effect when there are no timeouts.  However, this improves reliability
in lower-end systems are under heavy system load.

This has no effect on sysprop errors that are not timeouts.  In
particular, it does not affect the timing when there are permission
errors or attempts to update a read-only property (both of these
errors are seen quite frequently in logs).

Flag: EXEMPT bug-fix
Bug: 383751329
Test: presubmit
Change-Id: Ibc70db1f6c565e0a8651d9026854d66db36418dd
parent 64d68e1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -595,7 +595,7 @@ uint32_t HandlePropertySetNoSocket(const std::string& name, const std::string& v
}
}


static void handle_property_set_fd(int fd) {
static void handle_property_set_fd(int fd) {
    static constexpr uint32_t kDefaultSocketTimeout = 2000; /* ms */
    static constexpr uint32_t kDefaultSocketTimeout = 5000; /* ms */


    int s = accept4(fd, nullptr, nullptr, SOCK_CLOEXEC);
    int s = accept4(fd, nullptr, nullptr, SOCK_CLOEXEC);
    if (s == -1) {
    if (s == -1) {