• exec/load/podcast_routines.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sunday, March 22, 2026 21:30:01
    https://gitlab.synchro.net/main/sbbs/-/commit/961c10a3a612936d684770c8
    Modified Files:
    exec/load/podcast_routines.js
    Log Message:
    Catch exception from http.Head(), log error and return gracefully

    When the status could not be parsed (i.e. was not "200 OK"), then the script would terminate and leave the "temorary" rss.new file in place and subsequent exclusive-open attempts would fail without obvious reason / error message.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Monday, March 23, 2026 20:22:49
    https://gitlab.synchro.net/main/sbbs/-/commit/1c84aba3e131130c6f308fad
    Modified Files:
    exec/load/podcast_routines.js
    Log Message:
    Apparently an excplicit http.sock.close() is rquired between Head requests

    or else podcast.js will create an open connection for every episode of the podcast. This looks like a hack, but there's no Http close method and explicitly deleting the 'http' object here didn't close the socket either.

    This fixes the Error: Unable to parse status line '429 Too Many Requests' getting head of http://mp3.techdorks.net/episodes/techdorks-2015-11-04-ep9.mp3 I've been getting every time podcast.js ran.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net