Re: A strange problem(about socket tcp connection)~~~



Harry wrote:
:(

"Harry" <qianhx@xxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ:f5god6$qe4$1@xxxxxxxxxxxxxxxxx
Hi, everyone

I have a problem when developing a server.
It really troubles me for a very long time.

The server's socket-connection is working undering
Asynchronize-mode(linger time is 30 seconds).

One accept-thread accept new request socket, and then pass the file-handle
to other work threads(several ones).

When the Server is working under heavy pressure, for example > 30
requests/second,
it will only work for several hours.
And after that the new TCP connections can't be connected anymore.

At server side, the status is SYN_RECV(and then be closed as TIMEOUT); at
the client side, the status is ESTABLISHED.

Function accept() can't create any new socket anymore!!!

~~~More strange is, each time when I use "gdb" attach the working process,
and quit debug at once(nothing else be done before quit),
the Server's status will be unlocked, it gets back into normally working
status!!!


WHAT'S THE TROUBLE?

PLS give me any help

THANKS

Harry
06/22/2007


You have a programming bug somewhere, e.g. you write where you have not
malloc'd.

Robert
.



Relevant Pages

  • A strange problem(about socket tcp connection)~~~
    ... I have a problem when developing a server. ... It really troubles me for a very long time. ... One accept-thread accept new request socket, ... and quit debug at once, ...
    (comp.os.linux.networking)
  • Re: A strange problem(about socket tcp connection)~~~
    ... I have a problem when developing a server. ... It really troubles me for a very long time. ... One accept-thread accept new request socket, ... and quit debug at once, ...
    (comp.os.linux.networking)
  • Mysql problems after the install
    ... I have just apt-get install mysql and I am now having troubles with starting ... Starting MySQL database server: mysqld...failed. ... Check that mysqld is running and that the socket: ...
    (Debian-User)
  • Re: bin/131567: Update for regression/sockets/unix_cmsg
    ... -Usually each test does following steps: create Server, fork Client, ... Sometimes Client sends several ... +If Client sends some ancillary data object, ... Receiving sockcred (listening socket has LOCAL_CREDS) ...
    (freebsd-net)
  • Re: bin/131567: Update for regression/sockets/unix_cmsg
    ... -Usually each test does following steps: create Server, fork Client, ... Sometimes Client sends several ... +If Client sends some ancillary data object, ... Receiving sockcred (listening socket has LOCAL_CREDS) ...
    (freebsd-net)