projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd414df
)
Fix initialization check
author
Alan T. DeKok
<aland@freeradius.org>
Thu, 6 Nov 2014 16:06:15 +0000
(11:06 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 6 Nov 2014 16:06:30 +0000
(11:06 -0500)
src/main/connection.c
patch
|
blob
|
history
diff --git
a/src/main/connection.c
b/src/main/connection.c
index
dce767a
..
adc8b61
100644
(file)
--- a/
src/main/connection.c
+++ b/
src/main/connection.c
@@
-309,10
+309,10
@@
static fr_connection_t *fr_connection_spawn(fr_connection_pool_t *pool,
rad_assert(pool != NULL);
/*
- *
Prevent all threads from blocking if the resourc
e
- *
were managing connections for appears to be unavailabl
e.
+ *
If we have NO connections, don't open multipl
e
+ *
connections until we successfully open at least on
e.
*/
- if (
pool->num == 0
) {
+ if (
(pool->num == 0) && pool->pending
) {
return NULL;
}