AmendHub

jcs

/

subtext

/

amendments

/

binkp.c

Amendments on January 24, 2024


Amendments on November 27, 2023

binkp: Handle packet tossing better

On what looks like a permanent error (not malloc or network), assume
the file is bad and skip it, moving it to the "bad" folder and now
sending mail to the sysop.
jcs made amendment 564 4 months ago

Amendments on November 21, 2023

board: For new FTN messages posted locally, just toss them

Instead of writing the bile object ourself, use the toss function
which will do all of that along with the important bit of putting
the message id into the msgid cache. Previously we weren't doing
that so if the hub sent us back a copy of our own message, our
duplicate detection wasn't finding the existing msgid in our cache,
causing duplicate copies of all locally posted messages.
We still need to update this msgid cache when deleting FTN messages,
but we'll do that later.
jcs made amendment 560 5 months ago

Amendments on November 16, 2023

binkp: Remember when we failed connecting and delay next poll

If we had messages in the outbox and triggered a connection which
then failed, the main periodic loop will just pick up those outbox
packets right away and try reconnecting. In that case, don't look
for outbox packets and just use the next poll time.
jcs made amendment 546 5 months ago

Amendments on November 15, 2023

binkpc: Bail when receiving an M_SKIP

It's supposed to be non-destructive and we'll retry on the next
connection, though because the file remains in the outbox, we'll
pick it up quite quickly and retry sooner than the poll interval.
jcs made amendment 542 5 months ago

Amendments on November 14, 2023

binkp: Abort idle connections, respect binkp_delete_done for sending

Keep track of the time we last received a frame from the server and
if nothing happens in a while, kill the connection.
Use the binkp_delete_done setting to move processed outbound packets
into the processed folder for debugging.
Also send the actual mtime of the packet we're sending instead of
1, since it can be helpful for the binkp server operator.
jcs made amendment 541 5 months ago

binkp: Reset board before finding a match for tossing

Otherwise we were tossing messages for boards we weren't subscribed
to into the board we found for the last message.
jcs made amendment 537 5 months ago

Amendments on November 11, 2023

binkp: Check for a dead TCP connection in many places

Previously if the connection dropped in the middle of fetching, we
may have been sitting in a loop forever (though still yielding, so
it was just killing the binkp/task thread).
jcs made amendment 534 5 months ago

Amendments on November 9, 2023

*: Do config changes on the fly, restarting modules as needed

Annotate each config option with which component it needs restarted
when it changes and do those after saving from the sysop menu. This
also provides the ability to log each changed config option with its
old and new values.
jcs made amendment 531 5 months ago

Amendments on April 26, 2023


Amendments on April 18, 2023

binkp: Setup binkp_*_dir variables even if we're not polling

Posting to an FTN board needs to know where the outbox dir is, or
it'll write files in the wrong place.
jcs made amendment 485 about 1 year ago

Amendments on April 17, 2023


Amendments on March 27, 2023

binkp: Use common binkp: dir, move bad zips to bad subdir

jcs made amendment 456 about 1 year ago

Amendments on March 25, 2023

binkp: Increase backoff time when connection fails

jcs made amendment 446 about 1 year ago

Amendments on March 16, 2023

binkp: Reset binkp_temp_fail on each run since this is static

jcs made amendment 433 about 1 year ago

Amendments on March 15, 2023

binkp: Delete path after processing, not done_path

Also panic if deleting outbox file fails, otherwise we'll be sending
it over and over again
jcs made amendment 431 about 1 year ago

binkp: Move polling out of here, tweak some log messages

jcs made amendment 417 about 1 year ago

Amendments on March 14, 2023

binkp: Use FTN terminology

jcs made amendment 407 about 1 year ago

Amendments on March 13, 2023

binkp: Adapt to fidopkt parsing multiple messages per packet

jcs made amendment 405 about 1 year ago

Amendments on March 11, 2023

binkp: Claim binkp/1.0, not 1.1 (yet?), convert times to local

jcs made amendment 393 about 1 year ago