I am submitting this fastrack on behalf of Sreedhar Chalamalasetti.

Template Version: @(#)sac_nextcase %I% %G% SMI
This information is Copyright 2008 Sun Microsystems
1. Introduction
    1.1. Project/Component Working Name:
         tftpd server maximum timeout
    1.2. Name of Document Author/Supplier:
         Author:  Brian Utterback
    1.3  Date of This Document:
        23 October, 2008
4. Technical Description
This project proposes to add an option to set the tftpd server's (in.tftpd) 
maximum timeout in order to address CR 6696985.

The maximum timeout value (maxtimeout) in tftpd server is currently 25 seconds.
This maxtimeout value has proven to be too low for some applications, but 
currently there is no way to increase it because it is hardcoded. We propose to
make it configurable via a new command line flag "-T". This flag will take a 
single 
integer value that will set the retransmit timeout(rexmtval) in seconds, which 
will 
indirectly change the maxtimeout (5 times the rexmtval).

An example of setting of -T to 11 resulting in a 55 second maxtimeout value:

          # /usr/sbin/in.tftpd -T 11 -s /tftpboot

One point to elaborate on. It might seem odd to set the retransmission timer in
order to change the maximum timeout. This was choosen because the change is 
straightforward, and this is how it is currently done in Linux.

A minor/patch binding is requested.

Diffs for the man page are below:

*** in.tftpd.man        Thu Oct 23 14:25:59 2008
--- man_in.tftpd        Thu Oct 23 14:25:10 2008
***************
*** 10,16 ****
  
  SYNOPSIS
!      in.tftpd [-s] [homedir]
  
  
  DESCRIPTION
--- 10,16 ----
  
  SYNOPSIS
!      in.tftpd [-T <rexmtval>] [-s] [homedir]
  
  
  DESCRIPTION
***************
*** 40,45 ****
--- 43,52 ----
       -d    Debug. When specified  it  sets  the  SO_DEBUG  socket
             option.
  
+      -T rexmtval
+            Specifies the value of retransmission timeout in seconds.
+            This also sets the maximum session timeout to 5 times the
+            retransmission timeout value.
  
       -s    Secure.  When  specified,  the  directory  change   to
             homedir must succeed. The daemon also changes its root




6. Resources and Schedule
    6.4. Steering Committee requested information
        6.4.1. Consolidation C-team Name:
                on
    6.5. ARC review type: FastTrack
    6.6. ARC Exposure: open


Reply via email to