|
This fix needs to be applied!
I think that there is some confusion as to which patch needs to be applied. The TFTPClient send file method had numerous errors in the implementation, I doubt that it has ever worked right.
Would someone please apply this patch, and perhaps we can get a 1.4.2 build? This is a serious lack of functionality. — TFTPClient.java.orig 2005-12-03 10:05:48.000000000 -0600
+ boolean justStarted = true;
@@ -383,11 +385,16 @@
// The first time we receive we get the port number and
+ // OK, we have just gotten ACK about the last data we sent. Make another + if( totalThisPacket < TFTPPacket.SEGMENT_SIZE ) {
+ /* this will be our last packet -- send, wait for ack, stop */
+ lastAckWait = true;
+ }
Looks like Jira doesn't like inline patches - so I've attached the patch that I pasted into the previous comment.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NET-68STILL has not been fixed. Someone provided a working patch in that bug report, but it was never applied to the 1.4 trunk. The TFTP sendFile method remains useless in the current released version.