vibe.d https_server example fails
When build and run (using dub) the examples/https_server/ under vibe.d master it prints Target vibe-d ~master is up to date. Use --force to rebuild. Building https-server-example ~master configuration application, build type debug. Compiling using dmd... Linking... Running ./https-server-example Listening for HTTPS requests on ::1:8080 Listening for HTTPS requests on 127.0.0.1:8080 but when I open the URL 127.0.0.1:8080 in Chrome I get an error message No data is received (translated from swedish) and my server the prints Handling of connection failed: Failed to accept SSL tunnel: What's wrong? Certificates?
Re: vibe.d https_server example fails
On 09/29/2014 06:31 PM, Nordlöw wrote: What's wrong? Certificates? Use https instead of http :). https://localhost:8080/
Re: vibe.d https_server example fails
On Monday, 29 September 2014 at 16:57:52 UTC, Martin Nowak wrote: Use https instead of http :). Doh! https://localhost:8080/ This however crashes the server program as Error executing command run: Program exited with code -11 Maybe I should use a vibe.d version other than master?
Re: vibe.d https_server example fails
On 09/29/2014 08:20 PM, Nordlöw wrote: This however crashes the server program as Error executing command run: Program exited with code -11 Maybe I should use a vibe.d version other than master? Please report it https://github.com/rejectedsoftware/vibe.d/issues, there seems to be some issue with interface/class casting and manual class allocation.
Re: vibe.d https_server example fails
On Monday, 29 September 2014 at 18:37:28 UTC, Martin Nowak wrote: Please report it https://github.com/rejectedsoftware/vibe.d/issues, there seems to be some issue with interface/class casting and manual class allocation. This time I got: Handling of connection failed: Failed to accept SSL tunnel: (336027804) Handling of connection failed: Failed to accept SSL tunnel: fPu: (336027804) Handling of connection failed: Failed to accept SSL tunnel: fPu: (336027804) Error executing command run: Program exited with code -11 I know nothing about https. Do I have to tell my browser about certificates?
Re: vibe.d https_server example fails
Yes, the ssl_stream should be defined outside the if clause. The FreeLostRef refcount goes to 0 when it goes out of scope in http/server.d On Monday, 29 September 2014 at 21:39:03 UTC, Nordlöw wrote: On Monday, 29 September 2014 at 18:37:28 UTC, Martin Nowak wrote: Please report it https://github.com/rejectedsoftware/vibe.d/issues, there seems to be some issue with interface/class casting and manual class allocation. This time I got: Handling of connection failed: Failed to accept SSL tunnel: (336027804) Handling of connection failed: Failed to accept SSL tunnel: fPu: (336027804) Handling of connection failed: Failed to accept SSL tunnel: fPu: (336027804) Error executing command run: Program exited with code -11 I know nothing about https. Do I have to tell my browser about certificates?
Re: vibe.d https_server example fails
On 09/29/2014 11:41 PM, Etienne wrote: Yes, the ssl_stream should be defined outside the if clause. The FreeLostRef refcount goes to 0 when it goes out of scope in http/server.d Well, how about a pull then? https://github.com/rejectedsoftware/vibe.d/issues/846