Pop-Up Thingie

>>> Magnum BBS <<<
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. FidoNet
  3. SYNC SYSOPS
  • comReadBuf() supports an infinite timeout (0)

    From Deucе@1:103/705 to GitLab note in main/sbbs on Mon Jan 24 14:37:42 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/0b8517e11ce52702b4c56e2926990ae456dc23f6#note_2223

    This seems very dangerous since it will continue block across a disconnection/new connection. Is that the intended use case?
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Jan 24 15:18:58 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/0b8517e11ce52702b4c56e2926990ae456dc23f6#note_2224

    Yeah, I mentioned the risks to the requester (Nelgin) and he tested and was okay with the change: upon disconnect, the modem is always sending *something* to the application (SexPOTS), so it always aborts this loop. Still, I made the default timeout non-zero (60 seconds).
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Mon Jan 24 15:55:48 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/0b8517e11ce52702b4c56e2926990ae456dc23f6#note_2225

    While that works fine for his modem usage, I don't understand why he needs more than the 68 years allowed by the timeout value.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Mon Jan 24 16:02:25 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/0b8517e11ce52702b4c56e2926990ae456dc23f6#note_2226

    I'm also not sure why his ask is important enough to potentially break existing consumers and/or add a special-case value.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Mon Jan 24 16:04:16 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/0b8517e11ce52702b4c56e2926990ae456dc23f6#note_2227

    I think passing INT_MAX for infinite timeout would be *much* better than zero. --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Jan 24 17:06:07 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/0b8517e11ce52702b4c56e2926990ae456dc23f6#note_2228

    I did search and could not locate any caller of this function with a timeout parameter value of 0. Seemed like a safe-enough change but using INT_MAX or INT_MIN is fine too.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nelgin@1:103/705 to Deuc¿ on Tue Jan 25 00:42:01 2022
    On Mon, 24 Jan 2022 15:55:48 -0800
    "Deuc_" <deuc_@VERT> wrote:

    https://gitlab.synchro.net/main/sbbs/-/commit/0b8517e11ce52702b4c56e2926990ae456dc23f6#note_2225

    While that works fine for his modem usage, I don't understand why he
    needs more than the 68 years allowed by the timeout value.

    If someone had told me I cannot have an invite timeout but if you set
    it to 0 then it'll be 68 years, I'd have been fine with that.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • Who's Online

  • Recent Visitors

    • Gwylbert
      Tue Jul 1 10:35:03 2025
      from Sydney, Nsw via Telnet
    • Centurion
      Tue Jul 1 07:44:07 2025
      from Berea, Ohio via Telnet
    • Plume
      Tue Jul 1 03:59:33 2025
      from Uk via Raw
    • Plume
      Tue Jul 1 03:36:58 2025
      from Uk via Raw
    • Bob Worm
      Mon Jun 30 21:46:33 2025
      from Wales, Uk via Telnet
    • Bob Worm
      Mon Jun 30 16:56:01 2025
      from Wales, Uk via Telnet
    • Bob Worm
      Mon Jun 30 15:21:11 2025
      from Wales, Uk via Telnet
    • Bob Worm
      Mon Jun 30 10:26:51 2025
      from Wales, Uk via Telnet
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 502
    Nodes: 16 (2 / 14)
    Uptime: 208:08:31
    Calls: 9,876
    Calls today: 4
    Files: 13,784
    Messages: 6,204,709

© >>> Magnum BBS <<<, 2025