Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
70ddbc7b
Commit
70ddbc7b
authored
Nov 05, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug #421103
parent
9e44c3eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
MQTTProtocolClient.c
src/MQTTProtocolClient.c
+4
-1
No files found.
src/MQTTProtocolClient.c
View file @
70ddbc7b
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs, Allan Stockdill-Mander - SSL updates
* Ian Craggs - fix for bug 413429 - connectionLost not called
* Ian Craggs - fix for bug 413429 - connectionLost not called
* Ian Craggs - fix for bug 421103 - trying to write to same socket, in retry
*******************************************************************************/
*******************************************************************************/
/**
/**
...
@@ -556,7 +557,9 @@ void MQTTProtocol_retries(time_t now, Clients* client)
...
@@ -556,7 +557,9 @@ void MQTTProtocol_retries(time_t now, Clients* client)
if
(
client
->
retryInterval
<=
0
)
/* 0 or -ive retryInterval turns off retry */
if
(
client
->
retryInterval
<=
0
)
/* 0 or -ive retryInterval turns off retry */
goto
exit
;
goto
exit
;
while
(
client
&&
ListNextElement
(
client
->
outboundMsgs
,
&
outcurrent
))
while
(
client
&&
ListNextElement
(
client
->
outboundMsgs
,
&
outcurrent
)
&&
client
->
connected
&&
client
->
good
&&
/* client is connected and has no errors */
Socket_noPendingWrites
(
client
->
net
.
socket
))
/* there aren't any previous packets still stacked up on the socket */
{
{
Messages
*
m
=
(
Messages
*
)(
outcurrent
->
content
);
Messages
*
m
=
(
Messages
*
)(
outcurrent
->
content
);
if
(
difftime
(
now
,
m
->
lastTouch
)
>
max
(
client
->
retryInterval
,
10
))
if
(
difftime
(
now
,
m
->
lastTouch
)
>
max
(
client
->
retryInterval
,
10
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment