diff options
author | Badlop <badlop@process-one.net> | 2009-06-16 17:44:29 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2009-06-16 17:44:29 +0000 |
commit | 0da3b27dfe78a03af96ea7f3795e8cc1ba393050 (patch) | |
tree | c514c828c96af191e008155e6f29b549b269225b | |
parent | Implements sockname and peername for compatibility (thanks to Christohpe Romain) (diff) |
Prepare_response: fixed a dbg message. Changed http header (thanks to Stefan Strigler)
SVN Revision: 2209
-rw-r--r-- | src/web/ejabberd_http_bind.erl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index 5ac3f96d3..98f7a3e95 100644 --- a/src/web/ejabberd_http_bind.erl +++ b/src/web/ejabberd_http_bind.erl @@ -64,11 +64,13 @@ -endif. -define(MAX_REQUESTS, 2). % number of simultaneous requests --define(MIN_POLLING, "2"). % don't poll faster than that or we will shoot you --define(MAX_WAIT, 3600). % max num of secs to keep a request on hold --define(MAX_INACTIVITY, 30000). % msecs to wait before terminating idle sessions +-define(MIN_POLLING, "2"). % don't poll faster than that or we will + % shoot you +-define(MAX_WAIT, 3600). % max num of secs to keep a request on hold +-define(MAX_INACTIVITY, 30000). % msecs to wait before terminating + % idle sessions -define(CT, {"Content-Type", "text/xml; charset=utf-8"}). --define(HEADER, [?CT,{"X-Sponsored-By", "http://mabber.com"}]). +-define(HEADER, [?CT]). %%%---------------------------------------------------------------------- @@ -230,7 +232,7 @@ receive_loop(Sid,ParsedSid,Rid,Wait,Hold,Attrs) -> prepare_response(Sid,ParsedSid,Rid,Wait,Hold,Attrs) -> case http_get(Sid,Rid) of {error, not_exists} -> - ?DEBUG("no session associated with sid: ~s", Sid), + ?DEBUG("no session associated with sid: ~s", [Sid]), {404, ?HEADER, ""}; {ok, keep_on_hold} -> receive_loop(Sid,ParsedSid,Rid,Wait,Hold,Attrs); |