diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-10-26 00:06:54 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-10-26 00:09:23 -0400 |
commit | f35cbdbc2b4de02e8400aceb9e10f71c515be16d (patch) | |
tree | 79bb6bef65053fb4bb9f4401d0748bfa299ee7be /apps/mochiweb/src/mochiweb_echo.erl | |
parent | ebac05f686b56791511cb9b599dfb5a742dcfc96 (diff) |
use get-deps for mochiweb
We need to host our own mochiweb which tags the versions used by
CouchDB. This commit also contains a new rebar with a patch to fix
git tag dependencies (submitted upstream).
Diffstat (limited to 'apps/mochiweb/src/mochiweb_echo.erl')
-rw-r--r-- | apps/mochiweb/src/mochiweb_echo.erl | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/mochiweb/src/mochiweb_echo.erl b/apps/mochiweb/src/mochiweb_echo.erl deleted file mode 100644 index f32d6803..00000000 --- a/apps/mochiweb/src/mochiweb_echo.erl +++ /dev/null @@ -1,31 +0,0 @@ -%% @author Bob Ippolito <bob@mochimedia.com> -%% @copyright 2007 Mochi Media, Inc. - -%% @doc Simple and stupid echo server to demo mochiweb_socket_server. - --module(mochiweb_echo). --author('bob@mochimedia.com'). --export([start/0, stop/0, loop/1]). - -stop() -> - mochiweb_socket_server:stop(?MODULE). - -start() -> - mochiweb_socket_server:start([{name, ?MODULE}, - {port, 6789}, - {ip, "127.0.0.1"}, - {max, 1}, - {loop, {?MODULE, loop}}]). - -loop(Socket) -> - case gen_tcp:recv(Socket, 0, 30000) of - {ok, Data} -> - case gen_tcp:send(Socket, Data) of - ok -> - loop(Socket); - _ -> - exit(normal) - end; - _Other -> - exit(normal) - end. |