Uploaded image for project: 'XML-RPC'
  1. XML-RPC
  2. XMLRPC-120

XmlRpcCommonsTransport replyTimeout bug

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: Source
    • Labels:
      None

      Description

      XmlRpcCommonsTransport.initHttpHeaders tries to set replyTimeout to soTimeout like this:

      if (config.getReplyTimeout() != 0)
      client.getHttpConnectionManager().getParams().setSoTimeout(config.getConnectionTimeout());

      Shouldn't the second line be config.getReplyTimeout() instead of config.getConnectionTimeout()? I have not tested this in any way, but I just saw this line when reading the code and the bug seems obvious.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jylikrek Juho Yli-Krekola
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: