Code: Select all
timeout.tv_sec = config.http_timeout/1000;
timeout.tv_usec = config.http_timeout%1000;
Code: Select all
timeout.tv_sec = config.http_timeout/1000;
timeout.tv_usec = (config.http_timeout%1000) * 1000;
Not a big deal, really, but if you set the timeout to less than 1000ms, then you may notice the difference.