Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tabs/space

SVN Revision: 751
  • Loading branch information...
commit 74b91db0027f6de3126e630e5e4b77e3276d96ab 1 parent 3382dd6
@nniclausse nniclausse authored
Showing with 31 additions and 31 deletions.
  1. +29 −29 include/ts_http.hrl
  2. +2 −2 src/tsung_controller/ts_mon.erl
View
58 include/ts_http.hrl
@@ -15,7 +15,7 @@
%%% You should have received a copy of the GNU General Public License
%%% along with this program; if not, write to the Free Software
%%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
-%%%
+%%%
%%% In addition, as a special exception, you have the permission to
%%% link the code of this program with any library released under
%%% the EPL license and distribute linked combinations including
@@ -43,48 +43,48 @@
soap_action % for SOAP support
}).
--record(http_dyndata,
- {
+-record(http_dyndata,
+ {
user_agent,
cookies = [] % HTTP Cookies
}
).
-record(url,
- {scheme, %% http, https, ...
- host,
- port, %% undefined means use default (80 or 443)
- path = [],
- querypart = []}).
+ {scheme, %% http, https, ...
+ host,
+ port, %% undefined means use default (80 or 443)
+ path = [],
+ querypart = []}).
-%% use by the client process to store information about the current request during
+%% use by the client process to store information about the current request during
%% the parsing of the response
-record(http, {content_length= 0, % HTTP header: content length
- body_size = 0, % current size of body,
- chunk_toread = -1, % chunk data to be read (-1 = not chunked)
- status = none, % HTTP resp. status :200, etc. 'none'
+ body_size = 0, % current size of body,
+ chunk_toread = -1, % chunk data to be read (-1 = not chunked)
+ status = none, % HTTP resp. status :200, etc. 'none'
% if no current cnx.
- close = false, % true if HTTP/1.0 or 'connection: close'
+ close = false, % true if HTTP/1.0 or 'connection: close'
% has been received
- partial=false, % true if headers are partially received
- cookie=[]
- }).
+ partial=false, % true if headers are partially received
+ cookie=[]
+ }).
-record(cookie,{
- key,
- value,
- quoted,
- comment,
- comment_url,
- discard,
- domain,
- max_age,
- expires,
- path,
- port,
- secure,
- version}).
+ key,
+ value,
+ quoted,
+ comment,
+ comment_url,
+ discard,
+ domain,
+ max_age,
+ expires,
+ path,
+ port,
+ secure,
+ version}).
%% HTTP Protocol
-define(GET, "GET").
View
4 src/tsung_controller/ts_mon.erl
@@ -162,7 +162,7 @@ init([LogDir]) ->
%% {stop, Reason, State} (terminate/2 is called)
%%----------------------------------------------------------------------
handle_call({start_logger, Machines, DumpType, rrdtool}, From, State) ->
- case whereis(rrdtool) of
+ case whereis(rrdtool) of
undefined ->
?LOG("rrdtool port not available, switch to text backend~n",?WARN),
start_logger({Machines, DumpType, text}, From, State);
@@ -172,7 +172,7 @@ handle_call({start_logger, Machines, DumpType, rrdtool}, From, State) ->
end;
handle_call({start_logger, Machines, DumpType, text}, From, State) ->
start_logger({Machines, DumpType, text}, From, State);
-
+
%%% get status
handle_call({status}, _From, State ) ->
Request = dict:find(request, State#state.stats),
Please sign in to comment.
Something went wrong with that request. Please try again.