mojombo/ernie — pull request #15 by dergraf (2011-10-21 23:49:16+00:00)
Title: Persistent Connections

### Basic implementation for persistent connections

The request record now contains the pid of the receive_term process #request.con_pid which allows to report back once the processing is done. After the receive_term function kicked the queue it waits for this signal (#request.con_pid ! done) that the request has been executed and calls itself with an extra receive-timeout parameter (e.g. 10 seconds) preventing socket starvation. From here either a new request is received over the same connection or the receive times out which closes the socket.

This is implemented for call/cast in external and native handlers.