Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4031100

I need to set a timeout on a socket write

XMLWordPrintable

    • generic, x86, sparc
    • generic, solaris_2.5, solaris_2.5.1, windows_nt



      Name: mc57594 Date: 02/07/97


      The socket class has a method (setSotimeout) to set a timeout
      on a read from a socket. However I (and I'm sure others) also
      need to set a timeout on a write from a socket.

      Let me explain:

      If you need to communicate to a machine across a wide area
      network with routers etc. it is possible (or even likely) that
      a write on a socket will suspend because of network congestion.

      The TCP/IP timeout period is far too long and I need to return
      an error relatively quickly (5 - 10 seconds).

      I therefore request that the method setSotimeout be extended to
      include a write on a socket.

      company - Pick 'n Pay , email - ###@###.###
      ======================================================================

            jccollet Jean-Christophe Collet (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: