cURL / Mailing Lists / curl-library / Single Mail


TFTP test 271

From: Tor Arntsen <>
Date: Wed, 22 Mar 2006 13:54:12 +0100

The test for TFTP (271) isn't entirely truthful. Consider:
RUN: TFTP server failed verification
 test 271 SKIPPED: failed starting TFTP server

What really happens isn't that it failed to start the TFTP server (it runs
nicely), it's actually Curl that failed:

/tests>../src/curl -m4 -vg "tftp://
* About to connect() to port 8997
* Trying connected
* Connected to ( port 8997
* set timeouts for state 0; Total 30, retry 5 maxtry 6
* bind() failed; Invalid argument

* Closing connection #0
curl: (7) bind() failed; Invalid argument

This would be line 568 in lib/tftp.c. Obviously we'll have to fix that,
but the current test doesn't detect that tftp doesn't actually work in
Curl on IRIX at the moment. Not sure how to best fix the test part.

Just for completeness, here's the output from 'par' (like 'strace')
for the bind() call that fails.
lt-curl(12731909): write(2, "set timeouts for state 0; Tota", 53) = 53
lt-curl(12731909): bind(3, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 128) errno = 22 (Invalid argument)

Received on 2006-03-22