Closed ty4tw closed 3 years ago
In case of one client works fine.
When one more client try to CONNECT, SSL_connection was established and client can't receive CONNACK. Gateway returns CONNACK to the first client.
Gateway's log is as follows:
Client 172.16.1.11:30030 SSL Accepted. idx=0
SSL RECV
SensorNetwork::getSenderAddress recved from 172.16.1.11:30030 length = 15
Client 172.16.1.11:0 SSL Accepted. idx=0
ClientId of 172.16.1.11:30030 is GatewayTestClient30030.
20210802 175743.512 CONNECT <--- GatewayTestClient30030
20210802 175743.908 CONNECT ===> GatewayTestClient30030
20210802 175744.373 CONNACK <=== GatewayTestClient30030
20210802 175744.373 CONNACK ---> GatewayTestClient30030
IPv4 multicast recved from 172.16.1.11:1883 length = 3
20210802 175813.822 SEARCHGW <--- Client
20210802 175813.822 GWINFO ---> Clients
sendto 225.1.1.1:1883 length = 3
IPv4 multicast recved from 172.16.1.11:10000 length = 3
Connect RECV
SensorNetwork::getSenderAddress recved from 172.16.1.11:20020 length = 15
Listen SSL
Client 172.16.1.11:20020 SSL Accepted. idx=1
SSL RECV
SensorNetwork::getSenderAddress recved from 172.16.1.11:20020 length = 15
Client 172.16.1.11:0 SSL Accepted. idx=1
Client Id of 172.16.1.11:20020 should be GatewayTestClient20020. but 30030
20210802 175813.827 CONNECT <--- GatewayTestClient30030
20210802 175813.989 CONNECT ===> GatewayTestClient30030
20210802 175814.408 CONNACK <=== GatewayTestClient30030
20210802 175814.409 CONNACK ---> GatewayTestClient30030
DTLS over IPv6 is not debugged.
Client can't reconnect.
Enter ctrl+C to stop the client Start Client to reconnect.
SSL_connect() blocks
Gateway Log is as follows:
CLIENT CONNECT ONCE HERE!