]> SAFE projects GIT repository - jmp/mailleur/commitdiff
openssl connection OK, but"quit" is NOT seen
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 6 Apr 2025 23:12:38 +0000 (19:12 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 6 Apr 2025 23:12:38 +0000 (19:12 -0400)
lib/devsoc.c
lib/subrou.c
lib/unitls.c

index 2766eaab0c70ae73aef2e0b8e320b08b5e638f04..3c23c89720e4e5215fbd31e830e3f6d3d8634151 100644 (file)
@@ -920,7 +920,9 @@ if (soc!=(SOCTYP *)0) {
       break;
     }
   (void) sigprocmask(SIG_SETMASK,(sigset_t *)0,&origmask);
+  (void) rou_alert(0,"%s JMPDBG Entering poll",OPEP);
   status=poll(polling,1,millisec);
+  (void) rou_alert(0,"%s JMPDBG Exiting poll",OPEP);
   (void) sigprocmask(SIG_SETMASK,&origmask,(sigset_t *)0);
   switch (status) {
     case -1     :       //polling error
@@ -1141,6 +1143,8 @@ while (proceed==true) {
             }
           soc->carin+=got;      //managing carpile
           soc->carpile[soc->carin]='\000';
+          (void) rou_alert(0,"%s JMPDBG so fare within carpile=<%s>",
+                              OPEP,soc->carpile);
           break;
         }
       break;
index e86e18ccaed029983c0c51594abdc4f966f0c872..f636383c31e026aa206b1a47d23e5459aaf2c363 100644 (file)
@@ -21,7 +21,7 @@
 
 //version definition 
 #define VERSION "0.6"
-#define RELEASE "46"
+#define RELEASE "47"
 #define BRANCH "dvl"
 
 //Public variables
index cd97c3e12bf2df9cf06c92bc5b9b10e78122de51..23307d888f8faaa6d8aa1ec764059f893cb1efb4 100644 (file)
@@ -523,6 +523,7 @@ if (tls!=(TLSTYP *)0) {
     status=0;
     proceed=false;
     sofar=SSL_write(tls->ssl,buffer,tosend);
+    (void) rou_alert(0,"%s JMPDBG sofar='%d'",OPEP,sofar);
     switch (sofar) {
       case -1     :       //trouble to write
         switch (status=SSL_get_error(tls->ssl,-1)) {
@@ -587,19 +588,18 @@ if (tls!=(TLSTYP *)0) {
 
   status=0;
   got=SSL_read(tls->ssl,buffer,maxread);
-  (void) rou_alert(0,"%S JMPDBG got='%d'",OPEP,got);
   switch (got) {
     case -1     :       //trouble to write
       status=SSL_get_error(tls->ssl,-1);
-      (void) rou_alert(0,"%S JMPDBG status='%d'",OPEP,status);
       switch (status) {
-        case SSL_ERROR_WANT_READ        :     //"wanted" error
-        case SSL_ERROR_WANT_WRITE       :     //
-          (void) usleep(1000);
-          (void) rou_alert(0,"%S JMPDBG usleep",OPEP);
+        case SSL_ERROR_WANT_READ        :       //"wanted" error
+        case SSL_ERROR_WANT_WRITE       :       //
+          (void) usleep(1000);                  //to ease up incoming charactere
+          got=0;
           break;
         default                         :
-          (void) showtlserror(tls,-1,"%s Premature EOF with crypted link",OPEP);
+          (void) showtlserror(tls,-1,"%s  Unexpected SSL_read status='%d')",
+                                      OPEP,status);
           break;
         }
       break;