projects
/
working
/
OpenSRF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e64d3f8
)
Return -1 to indicate session_wait error
user/tsbere/session_wait_return
author
Thomas Berezansky
<tsbere@mvlc.org>
Wed, 31 Oct 2012 15:36:19 +0000
(11:36 -0400)
committer
Thomas Berezansky
<tsbere@mvlc.org>
Wed, 31 Oct 2012 15:36:19 +0000
(11:36 -0400)
Should prevent infinite loops that think something might have come back.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
src/libopensrf/transport_session.c
patch
|
blob
|
history
diff --git
a/src/libopensrf/transport_session.c
b/src/libopensrf/transport_session.c
index
67bda87
..
71721db
100644
(file)
--- a/
src/libopensrf/transport_session.c
+++ b/
src/libopensrf/transport_session.c
@@
-278,7
+278,7
@@
int session_connected( transport_session* session ) {
*/
int session_wait( transport_session* session, int timeout ) {
if( ! session || ! session->sock_mgr ) {
- return
0
;
+ return
-1
;
}
int ret = socket_wait( session->sock_mgr, timeout, session->sock_id );