Skip to content
Snippets Groups Projects
This project is mirrored from https://git.savannah.gnu.org/git/guix/guix-cuirass.git/. Pull mirroring updated .
  1. Aug 05, 2020
    • Mathieu Othacehe's avatar
      web: server: Remove with-ignored-disconnects. · 1bcccbab
      Mathieu Othacehe authored
      Use the pre-unwind-handler of a catch clause instead of nesting
      with-throw-handler inside a catch clause.
      
      * src/web/server/fiberized.scm (with-ignored-disconnects): Remove it,
      (client-loop): replace "with-ignored-disconnects" with a catch clause.
      Unverified
      1bcccbab
  2. Aug 04, 2020
    • Mathieu Othacehe's avatar
      web: server: Ignore all client disconnects. · 0abf1920
      Mathieu Othacehe authored
      EPIPE and ECONNRESET errors are already ignored when thrown by "sendfile" and
      "put-bytevector" procedures. It turns out "peek-char" can also cause such
      errors. So ignore such errors within the whole procedure.
      
      * src/web/server/fiberized.scm (client-loop): Wrap the whole procedure inside
      "with-ignored-disconnects" instead of wrapping individually "sendfile" and
      "put-bytevector" calls.
      Unverified
      0abf1920
  3. Jul 31, 2020
  4. Jul 30, 2020
  5. Jun 10, 2020
    • Mathieu Othacehe's avatar
      cuirass: Use sendfiles instead of raw copies. · 2280ae18
      Mathieu Othacehe authored
      * src/cuirass/http.scm (respond-file): Send the file name as 'x-raw-file
      header argument, instead of the raw file content,
      (respond-gzipped-file): ditto. Also set 'content-disposition header.
      * src/web/server/fiberized.scm (strip-headers, with-content-length): New procedures,
      (client-loop): Check if 'x-raw-file is set. If it's the case, use sendfiles to
      send the given file. Otherwise, keep the existing behaviour and send directly
      the received bytevector.
      Unverified
      2280ae18
  6. Nov 07, 2018
  7. Jan 26, 2018
  8. Jan 25, 2018
Loading