int server_handle_requst(int s)
{
	off_t offset = 0;
	int count = 40960, fd, on = 0, err;
	char path[] = "/tmp/index.html";
	char buf[4096];

	err = recv(s, buf, sizeof(buf), 0);
	if (err <= 0)
		goto err_out_remove;

	fd = open(path, O_RDONLY);
	if (fd == -1) {
		err = -1;
		goto err_out_remove;
	}
	
	err = sendfile(s, fd, &offset, count);
	setsockopt(s, SOL_TCP, TCP_CORK, &on, sizeof(on));

	close(s);
	close(fd);

	return 0;

err_out_remove:
	close(s);
	close(fd);

	return err;
}
