fsockopen command - timeout

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mydejamail@yahoo.co.uk

    #1

    fsockopen command - timeout

    Does the timeout option in the fsockopen command refer to the time
    allowed for a socket to be made availabe by the OS, or does it refer to
    the time allowed for reading or writing to the socket once created?

  • Janwillem Borleffs

    #2
    Re: fsockopen command - timeout

    mydejamail@yaho o.co.uk wrote:[color=blue]
    > Does the timeout option in the fsockopen command refer to the time
    > allowed for a socket to be made availabe by the OS, or does it refer
    > to the time allowed for reading or writing to the socket once created?
    >[/color]

    It's the maximum allowed time for the remote server to respond to the
    connect request. Note that when it's not set, it defaults to the
    default_socket_ timeout setting in your php.ini file.


    JW


    Comment

    • mydejamail@yahoo.co.uk

      #3
      Re: fsockopen command - timeout

      Thanks for your answer to this and the other query

      Janwillem Borleffs wrote:[color=blue]
      > mydejamail@yaho o.co.uk wrote:[color=green]
      > > Does the timeout option in the fsockopen command refer to the time
      > > allowed for a socket to be made availabe by the OS, or does it refer
      > > to the time allowed for reading or writing to the socket once created?
      > >[/color]
      >
      > It's the maximum allowed time for the remote server to respond to the
      > connect request. Note that when it's not set, it defaults to the
      > default_socket_ timeout setting in your php.ini file.
      >
      >
      > JW[/color]

      Comment

      Working...