-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
Milestone
Description
What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 0. see http://play.golang.org/p/FM79CQOQT1 for my test code "ws.go", which runs fine on a real machine but not in play environment because of websockets 1. "go run ws.go" 2. in a browser, visit unsecure url "http://localhost:8080"; --- this is insecure version, you should see echo messages once per second 3. in a browser, visit secure url "https://localhost:8090"; --- this is secure version, depending on browser type, you should see same output as insecure version, or error; note that you will have to accept the untrusted certificate below and/or security exception manually when prompted. What is the expected output? list of log events in browser: "open", then multiple "message" events once per second What do you see instead? for wss in chrome (my version is 28.0.1500.95), we see error and premature close events (i.e., wss fails), whereas firefox and opera work fine. note that wss in chrome seems to work fine with other non-golang https/tls servers. for insecure websockets (ws), all three work fine: chrome, firefox, & opera. Which compiler are you using (5g, 6g, 8g, gccgo)? i run the test code as "go run ws.go" Which operating system are you using? http://linuxmint.com/ 64-bit v15 Which version are you using? (run 'go version') go version devel +d7db8c804ffa Mon Aug 12 13:03:50 2013 +1000 linux/amd64 Please provide any additional information below. code at http://play.golang.org/p/FM79CQOQT1 is attached
Attachments:
- ws.go (5559 bytes)