This patch adds a small, TPF-specific section to http_main.c to
interface with a new TPF operating system feature.
(I used "diff -ru9" because the normal "diff -ru3" would not uniquely
identify the code being changed in http_main.c.)
Please let me know if you have any questions or concerns.
Thank you,
David McCreedy
[EMAIL PROTECTED]
diff -ru9 before/src/main/http_main.c after/src/main/http_main.c
--- before/src/main/http_main.c Mon Feb 25 11:53:47 2002
+++ after/src/main/http_main.c Mon Feb 25 11:53:36 2002
@@ -4561,18 +4561,29 @@
/* process the request if it was read without error */
if (r->status == HTTP_OK)
ap_process_request(r);
if(ap_extended_status)
increment_counts(my_child_num, r);
+#ifdef TPF_HAVE_NSD
+ /* Update the TPF Network Services Database message counters */
+ tpf_tcpip_message_cnt(NSDB_INPUT_CNT,
+ ((struct sockaddr_in *)&sa_server)->sin_port,
+ NSDB_TCP_S, 1);
+
+ tpf_tcpip_message_cnt(NSDB_OUTPUT_CNT,
+ ((struct sockaddr_in *)&sa_server)->sin_port,
+ NSDB_TCP_S, 1);
+#endif /* TPF_HAVE_NSD */
+
if (!current_conn->keepalive || current_conn->aborted)
break;
ap_destroy_pool(r->pool);
(void) ap_update_child_status(my_child_num, SERVER_BUSY_KEEPALIVE,
(request_rec *) NULL);
ap_sync_scoreboard_image();
if (ap_scoreboard_image->global.running_generation != ap_my_generation) {
diff -ru9 before/src/os/tpf/os.c after/src/os/tpf/os.c
--- before/src/os/tpf/os.c Mon Feb 25 11:59:05 2002
+++ after/src/os/tpf/os.c Mon Feb 25 11:59:09 2002
@@ -786,10 +786,14 @@
#ifdef TPF_HAVE_SAWNC
printf(" -D TPF_HAVE_SAWNC\n");
#endif
#ifdef TPF_NO_SAWNC
printf(" -D TPF_NO_SAWNC\n");
#endif
+#ifdef TPF_HAVE_NSD
+ printf(" -D TPF_HAVE_NSD\n");
+#endif
+
}