diff options
author | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-10 16:07:17 +0000 |
---|---|---|
committer | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-10 16:07:17 +0000 |
commit | b26052384ad05ba906706b7d131fc7b30c25395c (patch) | |
tree | bb41e3baf07894a8feac2e83a0362e4219fdbc01 /examples | |
parent | e1ff806ef9870647dbd13c16827b2057be399dc2 (diff) | |
download | ATCD-b26052384ad05ba906706b7d131fc7b30c25395c.tar.gz |
Hostname was made www.cs.wustl.edu
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Web_Crawler/Options.cpp | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/examples/Web_Crawler/Options.cpp b/examples/Web_Crawler/Options.cpp index ed6004ef11a..14d862dd5c4 100644 --- a/examples/Web_Crawler/Options.cpp +++ b/examples/Web_Crawler/Options.cpp @@ -13,8 +13,8 @@ Options::parse_args (int argc, char *argv[]) ACE_LOG_MSG->open (argv[0]); - this->hostname_ = "tao.cs.wustl.edu"; - this->uri_ = "index.html";//"~kirthika/auto_purge_client.html"; + this->hostname_ = "www.cs.wustl.edu"; + this->uri_ = "index.html"; this->recurse_ = 0; this->debug_ = 0; this->timeout_.sec (ACE_DEFAULT_TIMEOUT); @@ -22,9 +22,9 @@ Options::parse_args (int argc, char *argv[]) this->verbose_ = 0; this->order_ = "FIFO"; this->port_no_ = ACE_DEFAULT_HTTP_PORT; - this->handle_limit_ = -1; + // The default is to make this limit as large as possible. - // int handle_limit = 10; + this->handle_limit_ = -1; for (int c; (c = getopt ()) != EOF; @@ -88,26 +88,6 @@ Options::parse_args (int argc, char *argv[]) /* NOTREACHED */ } - // Don't bother checking the return value since this is just a - // "hint" and isn't portable to all OS platforms. - - // ACE::set_handle_limit (handle_limit); - /* ACE_DEBUG ((LM_DEBUG, "Changing rlimit\n")); - struct rlimit rl; - if (getrlimit (RLIMIT_NOFILE, &rl) == -1) - cout << "getrlimit: errno = "<< errno <<endl; - - rl.rlim_cur = handle_limit; - if (setrlimit (RLIMIT_NOFILE, &rl) == -1) - cout << "setrlimit: errno = "<< errno <<endl; - ACE_ERROR_RETURN ((LM_ERROR, - "%p \n"), - -1); - if (getrlimit (RLIMIT_NOFILE, &rl) == -1) - cout << "getrlimit: errno = "<< errno <<endl; - else - cout << "limit "<< rl.rlim_cur<<endl; - ACE_DEBUG ((LM_DEBUG, "Changed rlimit\n")); */ return 0; } |