Releases: olliNiinivaara/GuildenStern
Releases · olliNiinivaara/GuildenStern
3.0.0
- breaking API change: Websocket handler's WsUpgradeRequestCallback now accepts first message to send back to client
- better documentation
- buffer overflow prevention in header receiver
- protocolname in ctxstream's registerHandler
- SecurityThreatened -close cause available for applications to use
- calling
shutdown
automatically sends SIGINT signal, i.e. "presses Ctrl-C" - SIGTERM is now caught and handled as SIGINT (graceful shutdown)
websockets are go
- CloseCallback has new parameter
socket
that allows receiving closecallbacks also for sockets other than current request - new
proc closeOtherSocket
allows closing sockets other than current request (such as websockets) - new
proc getProtocolName
for checking type (http, websocket, ...) of closed sockets other than current request - new
proc multiSendWs
uses non-blocking I/O to cleverly deliver multiple messages to multiple websockets in one shot (even when some receivers have sloppy connections) - avoids weird behavior by refusing to use socket address or port that is already in use
- unreserves sockets at shutdown with SO_LINGER 0 close option so that they can be reused immediately
posix.SocketHandle
is used instead ofnativesockets.SocketHandle
posix.INVALID_SOCKET
is used instead ofnativesockets.osInvalidSocket
first bug fixes
- MaxWsRequestLength removed (just use MaxRequestLength)
- Bug fix in WebSocket handler (now initializes WsCtx properly)
- Bug fix in result code checker (wrong usage of return inside template...)
Version 1.0.0
version 1.0.0
Modularity
Ready for feedback
Threadpool
Does not support Weave. Uses threadpool instead.
requires weave 0.4.0
obsolete