Search the web
Sign In
New User? Sign Up
ftpbench · To develop an open-source FTP benchmark application,
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: error encountered when running dkftpbench-0.22 for the first t   Message List  
Reply | Forward Message #168 of 282 |
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



Thu Apr 26, 2001 4:40 pm

dank@...
Send Email Send Email

Forward
Message #168 of 282 |
Expand Messages Author Sort by Date

... 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...
Dan Kegel
dank@...
Send Email
Apr 26, 2001
4:38 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help