Skip to content
Snippets Groups Projects
Commit 69a7e80b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Increase the connect timeout from 10 seconds (the default) to 30 seconds

Should probably make this a command-line option too, but this will do for
now for Ragnarok to test eternal-september with.
parent 41f51144
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -56,6 +56,7 @@ var yield_length = 1; // Length of yield (in milliseconds)
var max_newsgroups_per_article = 5; // Used for spam-detection
var unmangle = false;
var use_xover = true;
var connect_timeout = 30;
// Parse arguments
for(i=0;i<argc;i++) {
......@@ -282,7 +283,7 @@ printf("Connecting to %s port %d ...\r\n",host,port);
socket = new Socket();
//socket.debug=true;
socket.bind(0,interface_ip_address);
if(!socket.connect(host,port)) {
if(!socket.connect(host, port, connect_timeout)) {
printf("!Error %d connecting to %s port %d\r\n"
,socket.last_error,host,port);
delete socket;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment