diff --git a/examples/server.toit b/examples/server.toit index b53e10f..4b0b9ba 100644 --- a/examples/server.toit +++ b/examples/server.toit @@ -13,7 +13,7 @@ main: // Listen on a free port. tcp-socket := network.tcp-listen 0 print "Server on http://localhost:$tcp-socket.local-address.port/" - server := http.Server + server := http.Server --max-tasks=5 server.listen tcp-socket:: | request/http.RequestIncoming writer/http.ResponseWriter | resource := request.query.resource if resource == "/empty": diff --git a/src/server.toit b/src/server.toit index f67e792..01057aa 100644 --- a/src/server.toit +++ b/src/server.toit @@ -30,7 +30,7 @@ main: // Listen on a free port. tcp-socket := network.tcp-listen 0 print "Server on http://localhost:$tcp-socket.local-address.port/" - server := http.Server + server := http.Server --max-tasks=5 server.listen tcp-socket:: | request/http.RequestIncoming writer/http.ResponseWriter | resource := request.query.resource if resource == "/empty":