[erlang-questions] [ANN] misultin v0.7
Sun Apr 10 19:56:10 CEST 2011
On 04/10/2011 07:35 PM, Max Lapshin wrote:
>> I disagree. Mochiweb is slower because of design issues, not because it
>> has more functionality. Most of the functionality in mochiweb that
> You are speaking about stability and use blocking, unstable technique
> of listening and reading sockets:
> I advise to read this:
An acceptor process only accepts, it can be killed and restarted
without any fear of losing anything, which is why their supervisor
uses brutal_kill in the child spec. The listened socket is controlled
by a different process which makes killing acceptors a complete
Nothing in your link indicates that blocking is unstable. I have an
application that's been up and running for many months that hasn't had
any issue with blocking. No crash has occured on this part of the code
or in the VM so far, and it's not running heartbeat either.
Note that all the erlang http servers I've looked at so far use blocking.
On the other hand the technique in your link is undocumented in OTP and
I want no such thing in cowboy. The code must stay clean from all the
evils that are pmods, pdicts and undocumented features.
More information about the erlang-questions