git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d97bd1
)
test if connection to lbproxy is already open
author
Jan Pospíšil
<honik@ntc.zcu.cz>
Fri, 20 Jan 2006 10:03:05 +0000
(10:03 +0000)
committer
Jan Pospíšil
<honik@ntc.zcu.cz>
Fri, 20 Jan 2006 10:03:05 +0000
(10:03 +0000)
org.glite.lb.client/src/connection.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.client/src/connection.c
b/org.glite.lb.client/src/connection.c
index
bbd03ee
..
c681527
100644
(file)
--- a/
org.glite.lb.client/src/connection.c
+++ b/
org.glite.lb.client/src/connection.c
@@
-204,10
+204,12
@@
int edg_wll_open_proxy(edg_wll_Context ctx)
int flags;
- ctx->connProxy->conn.sock = socket(PF_UNIX, SOCK_STREAM, 0);
- if (ctx->connProxy->conn.sock < 0) {
- edg_wll_SetError(ctx, errno, "socket() error");
- goto err;
+ if (!(ctx->connProxy->conn.sock == -1)) {
+ ctx->connProxy->conn.sock = socket(PF_UNIX, SOCK_STREAM, 0);
+ if (ctx->connProxy->conn.sock < 0) {
+ edg_wll_SetError(ctx, errno, "socket() error");
+ goto err;
+ }
}
memset(&saddr, 0, sizeof(saddr));