add feature license management
This commit is contained in:
@@ -65,12 +65,13 @@ func main() {
|
||||
r := router.NewRouter(cfg, db, logger)
|
||||
|
||||
// Create HTTP server
|
||||
// Note: WriteTimeout should be 0 for WebSocket connections (they handle their own timeouts)
|
||||
srv := &http.Server{
|
||||
Addr: fmt.Sprintf(":%d", cfg.Server.Port),
|
||||
Handler: r,
|
||||
ReadTimeout: 15 * time.Second,
|
||||
WriteTimeout: 15 * time.Second,
|
||||
IdleTimeout: 60 * time.Second,
|
||||
WriteTimeout: 0, // 0 means no timeout - needed for WebSocket connections
|
||||
IdleTimeout: 120 * time.Second, // Increased for WebSocket keep-alive
|
||||
}
|
||||
|
||||
// Setup graceful shutdown
|
||||
|
||||
Reference in New Issue
Block a user