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

    • Retrojimmyx
      Mon Sep 14 00:27:04 2026
      from Derbyshire via Telnet
    • Rixter
      Mon Sep 14 00:01:35 2026
      from Madison, Nc via Telnet
    • Sam Shaxted
      Sun Sep 13 14:48:09 2026
      from Sittingbourne, Kent via SSH
    • Furryboy
      Sun Sep 13 13:32:38 2026
      from Romania, Galati via SSH
    • Bob Worm
      Sun Sep 13 13:31:58 2026
      from Wales, Uk via Telnet
    • Rixter
      Sun Sep 13 12:01:35 2026
      from Madison, Nc via Telnet
    • Quenix
      Sun Sep 13 01:29:15 2026
      from Qu�bec, Canada via Telnet
    • Rixter
      Sun Sep 13 00:01:34 2026
      from Madison, Nc via Telnet
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 764
    Nodes: 16 (2 / 14)
    Uptime: 13:41:36
    Calls: 12,754
    Calls today: 2
    Files: 15,355
    Messages: 6,556,623

© >>> Magnum BBS <<<, 2026