• src/sbbs3/js_socket.c websrvr.c

    From deuce@1:103/705 to CVS commit on Fri Jun 21 12:53:29 2019
    src/sbbs3 js_socket.c 1.228 1.229 websrvr.c 1.685 1.686
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv14579

    Modified Files:
    js_socket.c websrvr.c
    Log Message:
    Fix handling of responses with no content.

    This introduces a new request field send_content which indicates if the
    content should be sent. This covers various cases like HEAD responses
    where there's an entity, but no content is sent as well as 204, 304, and 1xx responses where there is not even an entity.

    writebuf() will now enforce this, so there's no need for various checks throughout the code to see if data should be sent or not.

    Also, we now only set sent_headers after the headers are sent.


    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Tue Dec 19 11:54:47 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/0929ae07074c03926ab438be
    Modified Files:
    src/sbbs3/js_socket.c websrvr.c
    Log Message:
    Fix locking for JS TLS connections

    Also, expand the lock in websrvr to the correct scope.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)