This is a simple Kitura based HTTPS server with basic auth that is leaking memory with every request.
- Build this app with XCode (9.2 with swift 4.0 or 9.3 with swift 4.1).
- Edit scheme for Run and Profile to change Options -> Working Directory to the project dir so that certificates are loaded properly.
- Run with malloc stack logging or via leaks Instruments.
Start ./test_load.sh
script in another console to generate server load.
The server will start to allocate memory with every request and will never reclaim it.
Not sure yet. The heaviest stack traces point toward leaking SSLContext and leaking buffers in Socket.
None at the moment.