Skip to content

Commit 729c67f

Browse files
authored
Merge pull request #276 from asergeyev/gorilla
Gorilla support in Websocketd
2 parents f128e07 + b2b6022 commit 729c67f

File tree

18 files changed

+133
-113
lines changed

18 files changed

+133
-113
lines changed

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Version 0.3.0 (??, 2017)
2+
3+
* Migration of underlying websocket server to Gorilla Websocket lib.
4+
* Binaries build code switched to 1.9.2
5+
16
Version 0.2.12 (Feb 17, 2016)
27

38
* Update of underlying go standard libraries change how SSL works. SSL3 is no longer supported.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ from disk using a `file://` URL.
9999
More Features
100100
-------------
101101

102-
* Very simple install. Just [download](https://github.com/joewalnes/websocketd/wiki/Download-and-install) the single executable for Linux, Mac or Windows and run it. No dependencies, no installers, no package managers, no external libraries. Suitable for development and production servers.
102+
* Very simple install. Just [download](https://github.com/joewalnes/websocketd/wiki/Download-and-install) the single executable for Linux, Mac or Windows and run it. Minimal dependencies, no installers, no package managers, no external libraries. Suitable for development and production servers.
103103
* Server side scripts can access details about the WebSocket HTTP request (e.g. remote host, query parameters, cookies, path, etc) via standard [CGI environment variables](https://github.com/joewalnes/websocketd/wiki/Environment-variables).
104104
* As well as serving websocket daemons it also includes a static file server and classic CGI server for convenience.
105105
* Command line help available via `websocketd --help`.

config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ func parseCommandLine() *Config {
144144
config.DevConsole = *devConsoleFlag
145145
config.StartupTime = time.Now()
146146
config.ServerSoftware = fmt.Sprintf("websocketd/%s", Version())
147+
config.HandshakeTimeout = time.Millisecond * 1500 // only default for now
147148

148149
if len(os.Args) == 1 {
149150
fmt.Printf("Command line arguments are missing.\n")

examples/windows-jscript/count.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
cscript /nologo count.js
2+
cscript /nologo %0\..\count.js
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
cscript /nologo dump-env.js
2+
cscript /nologo %0\..\dump-env.js
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
cscript /nologo greeter.js
2+
cscript /nologo %0\..\greeter.js
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
cscript /nologo count.vbs
2+
cscript /nologo %0\..\count.vbs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
cscript /nologo dump-env.vbs
2+
cscript /nologo %0\..\dump-env.vbs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
cscript /nologo greeter.vbs
2+
cscript /nologo %0\..\greeter.vbs

help.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,32 @@ Options:
3333
--port=PORT HTTP port to listen on.
3434
3535
--address=ADDRESS Address to bind to (multiple options allowed)
36-
Use square brackets to specify IPv6 address.
36+
Use square brackets to specify IPv6 address.
3737
Default: "" (all)
3838
3939
--sameorigin={true,false} Restrict (HTTP 403) protocol upgrades if the
40-
Origin header does not match to requested HTTP
40+
Origin header does not match to requested HTTP
4141
Host. Default: false.
4242
4343
--origin=host[:port][,host[:port]...]
4444
Restrict (HTTP 403) protocol upgrades if the
4545
Origin header does not match to one of the host
4646
and port combinations listed. If the port is not
47-
specified, any port number will match.
47+
specified, any port number will match.
4848
Default: "" (allow any origin)
4949
50-
--ssl Listen for HTTPS socket instead of HTTP.
50+
--ssl Listen for HTTPS socket instead of HTTP.
5151
--sslcert=FILE All three options must be used or all of
52-
--sslkey=FILE them should be omitted.
52+
--sslkey=FILE them should be omitted.
5353
5454
--redirport=PORT Open alternative port and redirect HTTP traffic
5555
from it to canonical address (mostly useful
5656
for HTTPS-only configurations to redirect HTTP
5757
traffic)
5858
5959
--passenv VAR[,VAR...] Lists environment variables allowed to be
60-
passed to executed scripts.
60+
passed to executed scripts. Does not work for
61+
Windows since all the variables are kept there.
6162
6263
--binary={true,false} Switches communication to binary, process reads
6364
send to browser as blobs and all reads from the
@@ -76,16 +77,16 @@ Options:
7677
7778
--cgidir=DIR Serve CGI scripts in this directory over HTTP.
7879
79-
--maxforks=N Limit number of processes that websocketd is
80+
--maxforks=N Limit number of processes that websocketd is
8081
able to execute with WS and CGI handlers.
81-
When maxforks reached the server will be
82-
rejecting requests that require executing
82+
When maxforks reached the server will be
83+
rejecting requests that require executing
8384
another process (unlimited when 0 or negative).
8485
Default: 0
8586
8687
--closems=milliseconds Specifies additional time process needs to gracefully
87-
finish before websocketd will send termination signals
88-
to it. Default: 0 (signals sent after 100ms, 250ms,
88+
finish before websocketd will send termination signals
89+
to it. Default: 0 (signals sent after 100ms, 250ms,
8990
and 500ms of waiting)
9091
9192
--header="..." Set custom HTTP header to each answer. For

0 commit comments

Comments
 (0)