Consultor Eletrônico



Kbase 15740: Accept failed from listen socket 48 (1160)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Accept failed from listen socket 48 (1160)

If you are seeing the following repeated error in the log file, one
thing to check is your services file.


Accept failed from listen socket 48 (1160)


The startup command:
proserve dbname -S mydb -Mn 12 -Ma 10 -Mi 1 -n 120

-S = Server Name
-Mn = Maximum Servers
-Ma = Maximum Clients per Server
-Mi = Minimum Clients per Server
-n = Number of Users

In this example, lets say 120 remote users connect to the database,
there would be 10 users per server. i.e., maximum users (-n) 120
divided by maximum servers (-Mn) 12 equals 10.

Services File 1 (creates the error)

/etc/services

mydb 2500/tcp
hisdb 2510/tcp

The problem with the above services file is:
There are only 9 servers "reserved". i.e., 2501 through 2509.
(2500 is for the broker) When the 10th server is requested,
Progress will try to get the next available port (outside of the
2501 - 2509 range). When this happens, unpredictable results may
occur.

Services File 2 (corrects the error)

/etc/services

mydb 2490/tcp
hisdb 2510/tcp


The reason why the second services file works is because there are 19
available server ports. The startup command is starting 12 (-Mn 12)
servers.


The second services file works, but a "safer" method is use the
following convention:

mydb 2490/tcp
mydb1 2491/tcp
mydb2 2492/tcp
mydb3 2493/tcp
mydb4 2494/tcp
mydb5 2495/tcp
mydb6 2496/tcp
mydb7 2497/tcp
mydb8 2498/tcp
mydb9 2499/tcp
mydb10 2500/tcp
mydb11 2501/tcp
mydb12 2502/tcp
hisdb 2510/tcp


Note: The "number" of times the error is repeated in the log file is
a bug and is scheduled to be fixed in a future release.

May 1996

Progress Software Technical Support Note # 15740