Subversion Repositories Tewi

Rev

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

Rev 240 Rev 294
Line 1... Line 1...
1
/* $Id: http.c 240 2024-10-03 05:54:55Z nishi $ */
1
/* $Id: http.c 294 2024-10-09 10:51:28Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 57... Line 57...
57
	char buffer[512];
57
	char buffer[512];
58
	char cbuf[2];
58
	char cbuf[2];
59
	int phase = 0;
59
	int phase = 0;
60
	char* header;
60
	char* header;
61
	int nl;
61
	int nl;
-
 
62
	bool bad;
62
 
63
 
63
#ifdef USE_POLL
64
#ifdef USE_POLL
64
	struct pollfd pollfds[1];
65
	struct pollfd pollfds[1];
65
	pollfds[0].fd = sock;
66
	pollfds[0].fd = sock;
66
	pollfds[0].events = POLLIN | POLLPRI;
67
	pollfds[0].events = POLLIN | POLLPRI;
67
#else
68
#else
68
	fd_set fds;
69
	fd_set fds;
69
#endif
70
#endif
70
 
71
 
71
	bool bad = false;
72
	bad = false;
72
 
73
 
73
	cbuf[1] = 0;
74
	cbuf[1] = 0;
74
 
75
 
75
	req->method = NULL;
76
	req->method = NULL;
76
	req->path = NULL;
77
	req->path = NULL;