Skip to content

Commit

Permalink
FIX: httpd scheme: correct timeout; updated header
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Dec 6, 2022
1 parent 269032d commit fb8a03a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/httpd.reb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Rebol [
Title: "HTTPD Scheme"
Date: 02-Jul-2020
Date: 6-Dec-2022
Author: ["Andreas Bolka" "Christopher Ross-Gill" "Oldes"]
File: %httpd.reb
Name: 'httpd
Type: 'module
Version: 0.6.0
Version: 0.7.0
Exports: [http-server decode-target to-CLF-idate]
Rights: http://opensource.org/licenses/Apache-2.0
Purpose: {
Expand Down Expand Up @@ -33,6 +33,7 @@ Rebol [
01-Apr-2019 "Oldes" {Rewritten to be usable in real life situations.}
10-May-2020 "Oldes" {Implemented directory listing, logging and multipart POST processing}
02-Jul-2020 "Oldes" {Added possibility to stop server and return data from client (useful for OAuth2)}
06-Dec-2022 "Oldes" {Added minimal support for WebSocket connections}
]
needs: [3.10.1 mime-types]
]
Expand Down Expand Up @@ -881,7 +882,7 @@ sys/make-scheme [
ctx/out/Header: make map! 12
ctx/state: none
; set new timeout
ctx/timeout: now + ctx/config/keep-alive/1
ctx/timeout: now + to time! ctx/config/keep-alive/1
read port
][
; close client connection
Expand Down

0 comments on commit fb8a03a

Please sign in to comment.