@@ -260,9 +260,8 @@ init([KeepaliveSup,
260
260
261
261
tcp_connected (enter , _OldState , # statem_data {
262
262
config = # configuration {
263
- connection_negotiation_step_timeout = StateTimeout
264
- }} = StateData ) ->
265
- {next_state , ? FUNCTION_NAME , StateData , {state_timeout , StateTimeout , close }};
263
+ connection_negotiation_step_timeout = StateTimeout }}) ->
264
+ {keep_state_and_data , {state_timeout , StateTimeout , close }};
266
265
tcp_connected (state_timeout , close , # statem_data {
267
266
transport = Transport ,
268
267
connection = # stream_connection {socket = Socket }
@@ -288,10 +287,9 @@ tcp_connected(info, Msg, StateData) ->
288
287
end ).
289
288
290
289
peer_properties_exchanged (enter , _OldState , # statem_data {
291
- config = # configuration {
292
- connection_negotiation_step_timeout = StateTimeout
293
- }} = StateData ) ->
294
- {next_state , ? FUNCTION_NAME , StateData , {state_timeout , StateTimeout , close }};
290
+ config = # configuration {
291
+ connection_negotiation_step_timeout = StateTimeout }}) ->
292
+ {keep_state_and_data , {state_timeout , StateTimeout , close }};
295
293
peer_properties_exchanged (state_timeout , close , # statem_data {
296
294
transport = Transport ,
297
295
connection = # stream_connection {socket = Socket }
@@ -317,10 +315,9 @@ peer_properties_exchanged(info, Msg, StateData) ->
317
315
end ).
318
316
319
317
authenticating (enter , _OldState , # statem_data {
320
- config = # configuration {
321
- connection_negotiation_step_timeout = StateTimeout
322
- }} = StateData ) ->
323
- {next_state , ? FUNCTION_NAME , StateData , {state_timeout , StateTimeout , close }};
318
+ config = # configuration {
319
+ connection_negotiation_step_timeout = StateTimeout }}) ->
320
+ {keep_state_and_data , {state_timeout , StateTimeout , close }};
324
321
authenticating (state_timeout , close , # statem_data {
325
322
transport = Transport ,
326
323
connection = # stream_connection {socket = Socket }
@@ -353,10 +350,9 @@ authenticating(info, Msg, StateData) ->
353
350
end ).
354
351
355
352
tuning (enter , _OldState , # statem_data {
356
- config = # configuration {
357
- connection_negotiation_step_timeout = StateTimeout
358
- }} = StateData ) ->
359
- {next_state , ? FUNCTION_NAME , StateData , {state_timeout , StateTimeout , close }};
353
+ config = # configuration {
354
+ connection_negotiation_step_timeout = StateTimeout }}) ->
355
+ {keep_state_and_data , {state_timeout , StateTimeout , close }};
360
356
tuning (state_timeout , close , # statem_data {
361
357
transport = Transport ,
362
358
connection = # stream_connection {socket = Socket }
@@ -386,10 +382,9 @@ tuning(info, Msg, StateData) ->
386
382
end ).
387
383
388
384
tuned (enter , _OldState , # statem_data {
389
- config = # configuration {
390
- connection_negotiation_step_timeout = StateTimeout
391
- }} = StateData ) ->
392
- {next_state , ? FUNCTION_NAME , StateData , {state_timeout , StateTimeout , close }};
385
+ config = # configuration {
386
+ connection_negotiation_step_timeout = StateTimeout }}) ->
387
+ {keep_state_and_data , {state_timeout , StateTimeout , close }};
393
388
tuned (state_timeout , close , # statem_data {
394
389
transport = Transport ,
395
390
connection = # stream_connection {socket = Socket }
@@ -592,8 +587,8 @@ close_immediately(Transport, S) ->
592
587
Transport :shutdown (S , read ),
593
588
Transport :close (S ).
594
589
595
- open (enter , _OldState , StateData ) ->
596
- { next_state , ? FUNCTION_NAME , StateData } ;
590
+ open (enter , _OldState , _StateData ) ->
591
+ keep_state_and_data ;
597
592
open (info ,
598
593
{resource_alarm , IsThereAlarm },
599
594
# statem_data {
@@ -1013,10 +1008,9 @@ open(cast, {force_event_refresh, Ref}, #statem_data{
1013
1008
{keep_state , StatemData # statem_data {connection = Connection2 }}.
1014
1009
1015
1010
close_sent (enter , _OldState , # statem_data {
1016
- config = # configuration {
1017
- connection_negotiation_step_timeout = StateTimeout
1018
- }} = StateData ) ->
1019
- {next_state , ? FUNCTION_NAME , StateData , {state_timeout , StateTimeout , close }};
1011
+ config = # configuration {
1012
+ connection_negotiation_step_timeout = StateTimeout }}) ->
1013
+ {keep_state_and_data , {state_timeout , StateTimeout , close }};
1020
1014
close_sent (state_timeout , close , # statem_data {
1021
1015
transport = Transport ,
1022
1016
connection = # stream_connection {socket = Socket } = Connection ,
0 commit comments