mirror of
https://github.com/emqx/neuron.git
synced 2026-10-21 08:45:47 +08:00
fix(mqtt): bio should retry flag clear
This commit is contained in:
@@ -274,6 +274,7 @@ static BIO *bio_tcp_create(const char *addr, const char *port)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
BIO_clear_flags(bio, BIO_FLAGS_SHOULD_RETRY);
|
||||
BIO_set_nbio(bio, 1);
|
||||
BIO_set_conn_port(bio, port);
|
||||
return bio;
|
||||
|
||||
Reference in New Issue
Block a user