bartle
  • Login
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. headcrack (headcrack@headcrack.cf)'s status on Monday, 10-Jul-2017 21:07:04 CEST headcrack headcrack
    • MMN-o ✅⃠
    http://php.net/manual/en/function.stream-select.php :
    "If tv_sec is NULL stream_select() can block indefinitely, returning only when an event on one of the watched streams occurs (or if a signal interrupts the system call)."

    lib/iomaster.php: $ready = stream_select($read, $write, $except, $timeout, 0);
    In conversation Monday, 10-Jul-2017 21:07:04 CEST from headcrack.cf permalink
    • headcrack (headcrack@headcrack.cf)'s status on Monday, 10-Jul-2017 21:56:21 CEST headcrack headcrack
      • MMN-o ✅⃠
      I can see the problem in line 186 in extlib/HTTP/Request2/SocketWrapper.php, but that timeout is just for socket timeout. There is no socket timeout, the socket is considered alive if it sends a char every x seconds.
      We cannot - only- rely on stream_set_timeout. That is a different ball game for handling bad connections.

      We need timeouts for the time until there is a reply we can consider valid and the time between now and the last valid reply. Btw a counter for non valid relies seems useful for me, too.
      In conversation Monday, 10-Jul-2017 21:56:21 CEST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

bartle is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All bartle content and data are available under the Creative Commons Attribution 3.0 license.