rtl_tcp: increase the timeout in worker thread

the reset takes ages on windows

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Hoernchen 2012-10-18 01:27:51 +02:00 committed by Steve Markgraf
parent 7ff4abd378
commit aabd42dd05

View File

@ -179,7 +179,7 @@ static void *tcp_worker(void *arg)
pthread_mutex_lock(&ll_mutex); pthread_mutex_lock(&ll_mutex);
gettimeofday(&tp, NULL); gettimeofday(&tp, NULL);
ts.tv_sec = tp.tv_sec+1; ts.tv_sec = tp.tv_sec+5;
ts.tv_nsec = tp.tv_usec * 1000; ts.tv_nsec = tp.tv_usec * 1000;
r = pthread_cond_timedwait(&cond, &ll_mutex, &ts); r = pthread_cond_timedwait(&cond, &ll_mutex, &ts);
if(r == ETIMEDOUT) { if(r == ETIMEDOUT) {