-
Notifications
You must be signed in to change notification settings - Fork 34
Fix bug #235(SF793) #306
Fix bug #235(SF793) #306
Conversation
API_AsynReplyNotArrived exception was wrongly thrown when asyn call response was received in the last 20ms before the call timeout expiration.
|
Please use "close #" in PR comment or commit to allow GitHub automatically close corresponding issues. |
src/client/proxy_asyn.cpp
Outdated
| ApiAsynNotThereExcept::throw_exception(API_AsynReplyNotArrived, | ||
| desc.str(), | ||
| "Connection::command_inout_reply"); | ||
| if (req.request->poll_response() == false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nested if can be moved to outer, i.e.
if(i == nb && !req.request->poll_response())
Ingvord
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comment
Ingvord
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like other similar change requests from the first commit are missing here
Ingvord
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me now
API_AsynReplyNotArrived exception was wrongly thrown when asyn call
response was received in the last 20ms before the call timeout expiration.