Browse Source

Merge commit '81549c5' into cg_merges_20130524b

Conflicts:
	util.c
Luke Dashjr 13 years ago
parent
commit
c66b2c721b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      util.c

+ 2 - 1
util.c

@@ -1242,7 +1242,8 @@ static void recalloc_sock(struct pool *pool, size_t len)
 	if (new < pool->sockbuf_size)
 	if (new < pool->sockbuf_size)
 		return;
 		return;
 	new = new + (RBUFSIZE - (new % RBUFSIZE));
 	new = new + (RBUFSIZE - (new % RBUFSIZE));
-	applog(LOG_DEBUG, "Recallocing pool sockbuf to %lu", (unsigned long)new);
+	// Avoid potentially recursive locking
+	// applog(LOG_DEBUG, "Recallocing pool sockbuf to %lu", (unsigned long)new);
 	pool->sockbuf = realloc(pool->sockbuf, new);
 	pool->sockbuf = realloc(pool->sockbuf, new);
 	if (!pool->sockbuf)
 	if (!pool->sockbuf)
 		quit(1, "Failed to realloc pool sockbuf in recalloc_sock");
 		quit(1, "Failed to realloc pool sockbuf in recalloc_sock");