Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-2057

Make file transfer initiation value configurable

    XMLWordPrintable

    Details

      Description

      Some networks can have longer round trip time, so Spark's default file transfer initiation timeout of 15 seconds can be too short. Currently there is an option called "Transfer timeout (min)" in the Preferences, which probably means the time for the receiving part to accept the transfer. But in smackx.filetransfer.IncomingfileTransfer.negotiateStream(.IncomingfileTransfer.java 193 there is
      inputStream = streamNegotiatorTask.get(15, TimeUnit.SECONDS);

      Note, this is in Smack library itself. So this has to be made configurable in Smack first and then a new option provided in Spark.

      It is desirable not to change naming of the current option, so translations don't have to be updated. New settings can be "Transfer start timeout (sec)".

      Or maybe after all rename the current one:
      Transfer accept timeout (min)
      Transfer start timeout (sec)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            wroot wroot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: