Skip to content
Snippets Groups Projects
Commit 38c96e07 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 7df6956d
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ var yield_length = 1; // Length of yield (in milliseconds) ...@@ -56,6 +56,7 @@ var yield_length = 1; // Length of yield (in milliseconds)
var max_newsgroups_per_article = 5; // Used for spam-detection var max_newsgroups_per_article = 5; // Used for spam-detection
var unmangle = false; var unmangle = false;
var use_xover = true; var use_xover = true;
var connect_timeout = 30;
// Parse arguments // Parse arguments
for(i=0;i<argc;i++) { for(i=0;i<argc;i++) {
...@@ -282,7 +283,7 @@ printf("Connecting to %s port %d ...\r\n",host,port); ...@@ -282,7 +283,7 @@ printf("Connecting to %s port %d ...\r\n",host,port);
socket = new Socket(); socket = new Socket();
//socket.debug=true; //socket.debug=true;
socket.bind(0,interface_ip_address); 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" printf("!Error %d connecting to %s port %d\r\n"
,socket.last_error,host,port); ,socket.last_error,host,port);
delete socket; 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