jcs
/detritus
/amendments
/55
request: Add gopher port
jcs made amendment 55 about 1 year ago
--- request.c Wed Nov 20 13:17:14 2024
+++ request.c Thu Dec 12 21:06:49 2024
@@ -32,6 +32,7 @@ struct default_port {
} default_ports[] = {
{ "finger", FINGER_PORT },
{ "gemini", GEMINI_PORT },
+ { "gopher", GOPHER_PORT },
{ "http", HTTP_PORT },
{ "https", HTTPS_PORT },
};
@@ -568,7 +569,7 @@ request_data_shuffle(struct request *request, request_
/* read into their buf */
slen = request_tcp_read(request, data, len);
if (slen < 0) {
- /* read failed, give one final pass */
+ /* read failed, give one final pass for processing */
request->tcp_done_reading = true;
len = 0;
consumer(request, consumer_cookie, &data, &len, true);