extend/cowboy — Issue #126: Tiny documentation flaw: start_listener(Ref...
Author: kvakvs
Created: 2012-01-13 14:02:59+00:00
State: open

Please change in examples on 1st page and in cowboy_examples the first parameter to start_listeners, called Ref, rename it from "http" to something that feels "more customized", like "myserver1", "myserver2" etc.

I just spent few hours failing to start a second listener with the same Ref key "http", getting {error, already_started, PID} and without getting a clue that it should be unique for each listener. Hope this saves a hour or two for future users.