mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Increase MAXLISTEN to a more generous value, and add an error message
telling when it has been exceeded. Per trouble report from Jean-GÅrard Pailloncy.
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.174 2004/12/31 21:59:50 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.175 2005/01/12 16:38:17 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -298,7 +298,9 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
|
||||
}
|
||||
if (listen_index >= MaxListen)
|
||||
{
|
||||
/* Nothing found. */
|
||||
ereport(LOG,
|
||||
(errmsg("could not bind to all requested addresses: MAXLISTEN (%d) exceeded",
|
||||
MaxListen)));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user