Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pingresp not sent? #3730

Closed
GopherJ opened this issue Sep 18, 2020 · 5 comments
Closed

Pingresp not sent? #3730

GopherJ opened this issue Sep 18, 2020 · 5 comments
Assignees
Labels

Comments

@GopherJ
Copy link

GopherJ commented Sep 18, 2020

Please describe your problem in detail, if necessary, you can upload the log file through the attachment:

I'm currently using paho.mqtt.golang + emqx broker 4.1, pingresp not received error has been raised if I use tls, if I remove tls and connect to emqx broker on 1883, it works normally.

I'm using this script to generate certificate, the generated certificate works normally with mosquitto, which means my IOT devices can bridge normally to cloud emqx broker.

However, it's not the case with paho.mqtt.golang + emqx 4.1 & 4.2, I suspect this is more a problem on paho.mqtt.golang side but since if I remove ssl, things got better, I'm then wondering if emqx didn't give a pingresp very quickly in ssl case?

@GopherJ
Copy link
Author

GopherJ commented Sep 18, 2020

See also: eclipse/paho.mqtt.golang#453

@tigercl
Copy link
Member

tigercl commented Sep 21, 2020

@GopherJ Sorry for late reply, in my understanding, whether TLS is used or not will not affect the sending of PINRESP packets, maybe you can judge where the problem happened by capturing packets.

@GopherJ
Copy link
Author

GopherJ commented Sep 23, 2020

hi @tigercl I see emqx is throwing out this error:

2020-09-23 13:06:17.004 [error]     supervisor: 'esockd_connection_sup - <0.1824.0>'
    errorContext: connection_shutdown
    reason: {ssl_error,
                {tls_alert,
                    {bad_certificate,
                        "TLS server: In state certify received CLIENT ALERT: Fatal - Bad Certificate\n "}}}
    offender: [{pid,<0.20406.8>},
               {name,connection},
               {mfargs,
                   {emqx_connection,start_link,
                       [[{deflate_options,[]},
                         {max_conn_rate,500},
                         {active_n,100},
                         {zone,external}]]}}]

any idea on the reason? the certificates work already for some days, and suddenly emqx is reporting this

@GopherJ
Copy link
Author

GopherJ commented Sep 25, 2020

@tigercl please do you have any idea? I need to quickly identify the problem, I'm not sure if it comes from emqx or paho.mqtt.golang yet

@GopherJ
Copy link
Author

GopherJ commented Sep 25, 2020

Close because I got it reproduced using paho.mqtt.golang + mosquitto, it should be on paho.mqtt.golang side

@GopherJ GopherJ closed this as completed Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants