-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: libidc
action: commit
revision:
path_from:
revision_from: ece7b9bdbcb6d8fda70e0d5509fbe4caa62ce6d3:
path_to:
revision_to:

git.thebackupbox.net

libidc

git://git.thebackupbox.net/libidc

commit ece7b9bdbcb6d8fda70e0d5509fbe4caa62ce6d3
Author: epoch <epoch@hack.thebackupbox.net>
Date:   Sat Mar 28 07:02:13 2020 +0000

    commented out some printfs

diff --git a/libidc.c b/libidc.c

index 01013a73227e1ea023a59ae171a542d84dcefd6f..

index ..0c25e07f9c1d25b41f774eebdd50007cc67ad965 100644

--- a/libidc.c
+++ b/libidc.c
@@ -188,7 +188,7 @@ int select_on_everything() {
       else perror("wtf? select");
       //continue;
     }
-    fprintf(stderr,"after select(). ret: %d\n",j);
+    //fprintf(stderr,"after select(). ret: %d\n",j);
 //  for(i=0;fds[i] != -1;i++) if(extra_handler) extra_handler(fds[i]);
     if(j == 0) {//we MIGHT have some EOFs that need to be tried...
       if(eofcount == 0) {//if eofcount is zero we don't need to keep going
@@ -203,7 +203,7 @@ int select_on_everything() {
         idc.fds[i].line_handler(&idc.fds[i],"");
         continue;//we don't need to read the line.
       }
-      fprintf(stderr,"attempting to read from fd: %d eofstat: %d\n",idc.fds[i].fd,idc.fds[i].eof);
+      //fprintf(stderr,"attempting to read from fd: %d eofstat: %d\n",idc.fds[i].fd,idc.fds[i].eof);
       if((n=read(idc.fds[i].fd,idc.fds[i].buffer,CHUNK)) < 0) {
         snprintf(tmp,sizeof(tmp)-1,"fd %d: read perror:",idc.fds[i].fd);//hopefully this doesn't error and throw off error messages.
         perror(tmp);
@@ -211,7 +211,7 @@ int select_on_everything() {
       }
       //fprintf(stderr,"read %d bytes from fd: %d\n",n,idc.fds[i].fd);
       if(n == 0) {
-        fprintf(stderr,"reached EOF on fd: %d\n",idc.fds[i].fd);
+        //fprintf(stderr,"reached EOF on fd: %d\n",idc.fds[i].fd);
         if(idc.fds[i].keep_open) {
           idc.fds[i].eof=1;//this flag is only used if we want to wait for eof to go away.
           continue;

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 10:14:12 2024