tracy_pham@... wrote:
> Hello I'm a new user and I have problem running dkftpbench
> I got the following error message:
>
> robouser()::ftpCmdDone:CONNECT: connect returns 2
That means that the ftp connection couldn't be established.
The '2' is a value from errno.h. What operating system are you using?
Also, try applying the following patch; it adds a missing
error message:
--- ftp_client_pipe.cc 2001/03/15 18:54:41 1.3
+++ ftp_client_pipe.cc 2001/04/26 16:38:25
@@ -142,8 +142,11 @@
return err;
}
- if ((sock = socket(PF_INET, SOCK_STREAM, 0)) < 0)
- return errno;
+ if ((sock = socket(PF_INET, SOCK_STREAM, 0)) < 0) {
+ int err = errno;
+ DPRINT(("ftp_client_pipe_t::connect: socket failed, returning %d\n",
err));
+ return err;
+ }
address.sin_family = AF_INET;
address.sin_port = htons(port);
- Dan