https://gitlab.synchro.net/main/sbbs/-/commit/0d59a21c14fc2ff9950e60c1
Modified Files:
src/sbbs3/getnode.cpp main.cpp nopen.c nopen.h putnode.cpp userdat.c src/xpdev/filewrap.h
Log Message:
FILE_RETRY_DELAY() accepts the max-rand-delay as a second parameter now
And we use half that value as the multiple of the loop-count / 10 (rather
than hard code that value to 50ms).
This results in really no change for sbbs (1 more millisecond in the max rand value).
We're using the value 100 (ms) in SBBS (LOCK_RETRY_DELAY), so
- the first 10 retries delays an avg of 50ms between each
- the second 10 retries delays an avg of 100ms between each
- the next 10 retries delays an avg of 150ms betwen each
etc.
Making this a little more generic for reuse in smblib.
Also increase the setvbuf() size we use from 2KB to 64KB. I don't think this actually makes any difference in the OSes we support, but might as be more agressive here, just in case. It's 2026!
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net