Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] OpenSSL Error: error:1409F07F:SSL routines:ssl3_write_pending:bad write retry

Hi all,


I have discovered, that in my setup, also the normal publish is sometimes not working (but leads not into a disconnect!) 
In _mosquitto_net_write() the function
return write(mosq->sock, buf, count); then returns with MOSQ_ERR_ERRNO (errno=14, BAD_ADDRESS)

If I put a printf() before the write function, I cannot see any error any more. It seems as if the mosq->sock is not ready yet, when the error occurs.

I think, this behaviour leads into a broken TLS connection, when I'm using TLS.

 

Any guess?

Thanks and best regards

Chris




Von: mosquitto-dev-bounces@xxxxxxxxxxx <mosquitto-dev-bounces@xxxxxxxxxxx> im Auftrag von Christoph Rotter <cr@xxxxxxxxxxxx>
Gesendet: Dienstag, 01. August 2017 18:17
An: mosquitto-dev@xxxxxxxxxxx
Betreff: [mosquitto-dev] OpenSSL Error: error:1409F07F:SSL routines:ssl3_write_pending:bad write retry
 
Dieser Absender hat unsere Tests zur Betrugserkennung nicht bestanden und ist möglicherweise nicht der, der er zu sein scheint. Weitere Informationen über Spoofing
Feedback

Hi all,

 

My versions:

mosquitto c sourcecode (1.4.11)

raspberry pi (Raspbian Jessy)

OpenSSL 1.0.2j  26 Sep 2016

 

 

My target successfully connects via TLS to the broker and publishes messages with qos 2. After a few messages the MQTT connection stops and reconnects:

 

[...]

mqtt_log(16): Client MYTARGET sending PUBLISH (d0, q2, r0, m25, 'test/status', ... (75 bytes))

Publish() mosquitto_publish() FAILED mid 25, rc: 14, errno = 71 (Protocol error)

mqtt_log(16): Client MYTARGET received PUBREC (Mid: 25)

mqtt_log(16): Client MYTARGET sending PUBREL (Mid: 25)

mqtt_log(8): OpenSSL Error: error:1409F07F:SSL routines:ssl3_write_pending:bad write retry

DisconnectClbk()

Start() infinite loop broken (14).

Reconnect() try reconnect

mqtt_log(16): Client MYTARGET sending CONNECT

Reconnect() successfully reconnected

[...]

 

The problem occurs more often on a Raspberry with wifi connection (approx 1 in 10), than on the same target with ethernet cable connection (approx 1 in 60).

 

Any suggestions or tips what I can do or what I can change?

 

Thanks and best regards

Chris



Back to the top