Menu

#207 TCP Socket stops listening ?

open
3
2004-12-22
2004-12-13
Heiko Weber
No

I have written an Server Application started from the
sample server. I used SocketPort & SocketService, as in
the example.
If have noticed that sometimes the server is still listen
on the server port ('netstat -a' tells this), but if I tellnet
to the port, the server don't start a new session. I can
not reproduce the error, it only comes up 'sometimes' (I
like this :-)
I am on FreeBSD 4.10 here.
Anyone else has seen this before or has an idea ?
I tried to attach with gdb to the running server, but the
thread support of gdb looks not perfect ('info threads'
only reports one thread ...).

Best regards
Heiko

Discussion

  • David Sugar

    David Sugar - 2004-12-22

    Logged In: YES
    user_id=217

    I recall FreeBSD, prior to libkse, and now 5.3, uses a kind of user mode
    threading implimentation. I do recall there are quirks and oddities from
    this related to threads being improperly blocked while waiting on select
    calls in libc_r, and I suspect, offhand, that something of this behavior may
    be involved in this report. If I get a chance to setup a FreeBSD 4.x test
    system, I will be happy to look into this further.

     
  • David Sugar

    David Sugar - 2004-12-22
    • labels: 100593 --> Posix Target
    • priority: 5 --> 3
    • assigned_to: nobody --> dyfet
    • status: open --> open-postponed
     

Log in to post a comment.