You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/17 23:53:03 UTC
[26/50] git commit: this is going to be a lot of data,
so we need to make sure our network and scribe can handle this
this is going to be a lot of data, so we need to make sure our network and scribe can handle this
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/commit/8a6ad73d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/tree/8a6ad73d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/diff/8a6ad73d
Branch: refs/heads/import
Commit: 8a6ad73defe8f8a1a7dd7592885c090c05b11c92
Parents: ff2cdc9
Author: Emad El-Haraty <em...@mochimedia.com>
Authored: Mon Nov 1 11:02:40 2010 -0700
Committer: Emad El-Haraty <em...@mochimedia.com>
Committed: Mon Nov 1 11:02:40 2010 -0700
----------------------------------------------------------------------
src/mochiweb_socket_server.erl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/blob/8a6ad73d/src/mochiweb_socket_server.erl
----------------------------------------------------------------------
diff --git a/src/mochiweb_socket_server.erl b/src/mochiweb_socket_server.erl
index 3218195..a0abf54 100644
--- a/src/mochiweb_socket_server.erl
+++ b/src/mochiweb_socket_server.erl
@@ -210,9 +210,13 @@ handle_call(_Message, _From, State) ->
Res = error,
{reply, Res, State}.
-handle_cast({accepted, Pid, _Timing},
+handle_cast({accepted, Pid, Timing},
State=#mochiweb_socket_server{active_sockets=ActiveSockets}) ->
State1 = State#mochiweb_socket_server{active_sockets=1 + ActiveSockets},
+ udplog:log(mochiweb, [{type, accept}, {time_elapsed, Timing},
+ {port, State1#mochiweb_socket_server.port},
+ {active_sockets, State1#mochiweb_socket_server.active_sockets},
+ {name, State1#mochiweb_socket_server.name}]),
{noreply, recycle_acceptor(Pid, State1)};
handle_cast(stop, State) ->
{stop, normal, State}.