summaryrefslogtreecommitdiff
path: root/src/settings.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-06-27 10:50:45 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-06-27 10:50:45 -0400
commit1f9a8668b26293202f7d0511e160032a2f1c0634 (patch)
treece2e6f57c5abbacefb996b3bae88a1bf2802dc1e /src/settings.sml
parent135664d0a1140f90afd8b67999efe42469fc35fe (diff)
Avoid using prepared statements for non-persistent protocols
Diffstat (limited to 'src/settings.sml')
-rw-r--r--src/settings.sml7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/settings.sml b/src/settings.sml
index a020f373..36521799 100644
--- a/src/settings.sml
+++ b/src/settings.sml
@@ -252,7 +252,7 @@ val checkMime = check
type protocol = {
name : string,
link : string,
- supportsPush : bool
+ persistent : bool
}
val protocols = ref ([] : protocol list)
fun addProtocol p = protocols := p :: !protocols
@@ -263,12 +263,9 @@ fun clibFile s = OS.Path.joinDirFile {dir = Config.libC,
val http = {name = "http",
link = clibFile "request.o" ^ " " ^ clibFile "http.o",
- supportsPush = true}
+ persistent = true}
val () = addProtocol http
-val () = addProtocol {name = "cgi",
- link = clibFile "request.o" ^ " " ^ clibFile "cgi.o",
- supportsPush = false}
val curProto = ref http
fun setProtocol name =