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