[Tsung] Re: keepalive packets

Nicolas Niclausse nicolas at niclux.org
Sun May 27 00:04:09 CEST 2007


Jason Tucker wrote:
> OK, there were some issues there. This version seems to work better:
> 

Can you test this one ?

+%% local ack, special case for jabber: skip keepalive msg (single space
char)
+handle_data_msg(<<32>>, State=#state_rcv{clienttype=ts_jabber}) ->
+    {State#state_rcv{ack_done = false},[]};
 %% local ack, set ack_done to true
 handle_data_msg(Data, State=#state_rcv{request=Req, maxcount= MaxCount}) ->


If i understand well, the msg is a single " " space (<<32>> in binary),
so I think it's better to handle this special case only for ts_jabber
and for the " " character.

--
Nicolas


More information about the Tsung-users mailing list