Diff

Differences From Artifact [288fd58a21]:

To Artifact [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;