> 王 兴勇 [mailto:[EMAIL PROTECTED] wrote: > > Hi All:
Hi! > I development a socket server based on mina framework . In the test > found a very serious problem. > The question is this: > Test environment 1: I deployed the Socket Server on a machine in the > local area network machine, the Server is work very well. > Test environment 2: I deployed the Socket Server on a machine in the > internet. In the simulation of 100 local internet users to connect, > there have been problems in client service had received only 90% of the > request, the client received 10% of the connection was refused > (connection refused) exception. This could be due to firewall or server settings. Maybe firewall or server is thinking of a Denial of Service, because of 100 connections of the same client pc. There might be other configuration problems (connection limits, brandwidth limits, etc.). How much upstream do you have and is it enough to handle 100 concurrent connections? Are you behind a NAT-Router and can it handle so much connections with same source IP and target ip+port? Try to start your client from a computer with direct connection to the inet. > A few days, and we have not resolved, could not find the cause of the > problem! > Called upon to lend a helping hand to the point guide!! A LAN is faster and without so much failure spots like the internet. So I would check the enviroment first. hth Steve