Subversion Repositories Tewi

Rev

Rev 70 | Rev 104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70 Rev 88
Line 1... Line 1...
1
/* $Id: http.c 70 2024-09-19 09:23:45Z nishi $ */
1
/* $Id: http.c 88 2024-09-19 12:59:40Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 69... Line 69...
69
		tv.tv_sec = 5;
69
		tv.tv_sec = 5;
70
		tv.tv_usec = 0;
70
		tv.tv_usec = 0;
71
#ifndef NO_SSL
71
#ifndef NO_SSL
72
		if(ssl == NULL || !SSL_has_pending(ssl)) {
72
		if(ssl == NULL || !SSL_has_pending(ssl)) {
73
#endif
73
#endif
-
 
74
#ifdef __HAIKU__
-
 
75
			int n = select(32, &fds, NULL, NULL, &tv);
-
 
76
#else
74
			int n = select(FD_SETSIZE, &fds, NULL, NULL, &tv);
77
			int n = select(FD_SETSIZE, &fds, NULL, NULL, &tv);
-
 
78
#endif
75
			if(n <= 0) {
79
			if(n <= 0) {
76
				cm_log("HTTP", "Timeout, disconncting");
80
				cm_log("HTTP", "Timeout, disconncting");
77
				free(header);
81
				free(header);
78
				tw_free_request(req);
82
				tw_free_request(req);
79
				return -1;
83
				return -1;