socket.setdefaulttimeout()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rtilley

    #1

    socket.setdefaulttimeout()

    Perhaps this is a dumb question... but here goes. Should a socket client
    and a socket server each have different values for
    socket.setdefau lttimeout() what happens? Does the one with the shortest
    timeout period end first?
  • Fredrik Lundh

    #2
    Re: socket.setdefau lttimeout()

    "rtilley" wrote:[color=blue]
    > Perhaps this is a dumb question... but here goes. Should a socket client
    > and a socket server each have different values for
    > socket.setdefau lttimeout() what happens? Does the one with the shortest
    > timeout period end first?[/color]

    the timeout is a local setting, so the each process will time out
    according to its own settings.

    (but in reality, since sockets are about communication between
    two parties, it's quite likely that the other end has already given
    up when your side times out.)

    </F>



    Comment

    Working...