<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -62,7 +62,7 @@ Purpose:
 Tftpy is a TFTP library for the Python programming language. It includes
 client and server classes, with sample implementations. Hooks are included for
 easy inclusion in a UI for populating progress indicators. It supports RFCs
-1350, 2347 and 2348.
+1350, 2347, 2348 and the tsize option from RFC 2349.
 
 Dependencies:
 -------------
@@ -81,8 +81,8 @@ Limitations:
 ------------
 - Server only supports downloads.
 - Client only supports downloads.
-- Only 'octet' mode is supported
-- The only option supported is blksize
+- Only 'octet' mode is supported.
+- The only options supported are blksize and tsize.
 
 Future:
 -------</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -79,7 +79,7 @@ def main():
     if options.blocksize:
         tftp_options['blksize'] = int(options.blocksize)
     if options.tsize:
-        tftp_options['tsize'] = 1
+        tftp_options['tsize'] = 0
 
     tclient = tftpy.TftpClient(options.host,
                                int(options.port),</diff>
      <filename>bin/tftpy_client.py</filename>
    </modified>
    <modified>
      <diff>@@ -151,12 +151,12 @@ class TftpPacketInitial(TftpPacket, TftpPacketWithOptions):
         if self.options.keys() &gt; 0:
             logger.debug(&quot;there are options to encode&quot;)
             for key in self.options:
+                # Populate the option name
                 format += &quot;%dsx&quot; % len(key)
                 options_list.append(key)
-                # Not all options have values.
-                if key != 'tsize':
-                    format += &quot;%dsx&quot; % len(str(self.options[key]))
-                    options_list.append(str(self.options[key]))
+                # Populate the option value
+                format += &quot;%dsx&quot; % len(str(self.options[key]))
+                options_list.append(str(self.options[key]))
 
         logger.debug(&quot;format is %s&quot; % format)
         logger.debug(&quot;options_list is %s&quot; % options_list)</diff>
      <filename>tftpy/TftpPacketTypes.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0a5df33dca599de0d9cfe6b7fd658552f917219b</id>
    </parent>
  </parents>
  <author>
    <name>Michael P. Soulier</name>
    <email>msoulier@digitaltorque.ca</email>
  </author>
  <url>http://github.com/msoulier/tftpy/commit/ca7a06a09bbfee3f623d157df9c588b52fecf4ab</url>
  <id>ca7a06a09bbfee3f623d157df9c588b52fecf4ab</id>
  <committed-date>2008-10-08T18:31:34-07:00</committed-date>
  <authored-date>2008-10-08T18:31:34-07:00</authored-date>
  <message>Fixed the use of the tsize option in RRQ packets.</message>
  <tree>88b57e0e0ba2e4db50c063b4f02fc58ce463dd70</tree>
  <committer>
    <name>Michael P. Soulier</name>
    <email>msoulier@digitaltorque.ca</email>
  </committer>
</commit>
