|
|
bab403557f
|
Fix critical bugs and security vulnerabilities
- Fix race condition in client cleanup by serializing operations
- Add proper nil checks in SendMessage for server/config
- Add semaphore to limit concurrent health check goroutines
- Reduce buffer size to RFC-compliant 512 bytes (was 4096)
- Add comprehensive input validation (length, null bytes, UTF-8)
- Improve SSL error handling with graceful degradation
- Replace unsafe conn.Close() with proper cleanup() calls
- Prevent goroutine leaks and memory exhaustion attacks
- Enhanced logging and error recovery throughout
These fixes address the freezing issues and improve overall
server stability, security, and RFC compliance.
|
2025-09-27 15:13:55 +01:00 |
|