ernie icon indicating copy to clipboard operation
ernie copied to clipboard

Persistent Connections

Open dergraf opened this issue 12 years ago • 0 comments

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.

dergraf avatar Oct 21 '11 23:10 dergraf