Check-in [5f36930fec]
Overview
Comment:Updated to provide method earlier to log
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5f36930fecd162df97dc5e387ed6121eed5219bc
User & Date: rkeene on 2014-02-11 08:12:10
Other Links: manifest | tags
Context
2014-02-11
08:36
Corrected spelling error in comments check-in: 7f5706f719 user: rkeene tags: trunk
08:12
Updated to provide method earlier to log check-in: 5f36930fec user: rkeene tags: trunk
08:11
Added ETag check-in: 63a88bc1bc user: rkeene tags: trunk
Changes

Modified filed.c from [288fd58a21] to [882adf7425].

778
779
780
781
782
783
784

785
786
787
788
789
790
791
		fclose(fp);

		return;
	}

	path = request->path;
	strcpy(log->buffer, path);


	http_code = -1;

	fileinfo = filed_open_file(path, &request->fileinfo);
	if (fileinfo == NULL) {
		filed_error_page(fp, date_current, 404, request->method);








>







778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
		fclose(fp);

		return;
	}

	path = request->path;
	strcpy(log->buffer, path);
	log->method = request->method;

	http_code = -1;

	fileinfo = filed_open_file(path, &request->fileinfo);
	if (fileinfo == NULL) {
		filed_error_page(fp, date_current, 404, request->method);

850
851
852
853
854
855
856
857
858
859
860
861
862
863
864

			log->http_code = http_code;
			log->reason = "OK";
			log->starttime = time(NULL);
			log->req_offset = request->headers.range.offset;
			log->req_length = request->headers.range.length;
			log->file_length = fileinfo->len;
			log->method = request->method;

#ifdef FILED_NONBLOCK_HTTP
			int socket_flags;
			fd_set rfd, wfd;
			char sinkbuf[8192];
			ssize_t read_ret;








<







851
852
853
854
855
856
857

858
859
860
861
862
863
864

			log->http_code = http_code;
			log->reason = "OK";
			log->starttime = time(NULL);
			log->req_offset = request->headers.range.offset;
			log->req_length = request->headers.range.length;
			log->file_length = fileinfo->len;


#ifdef FILED_NONBLOCK_HTTP
			int socket_flags;
			fd_set rfd, wfd;
			char sinkbuf[8192];
			ssize_t read_ret;