Possible bug into hbtip...

103 views
Skip to first unread message

j...@mafact.com

unread,
Sep 17, 2024, 12:54:30 AMSep 17
to harbou...@googlegroups.com

I discovered (I think) a small bug into « contrib/hbtip/client.prg »

 

Method Close where I had to add the yellow line (::lSSL := .F.) so that we can re-use the same object even fter a call to the Close method.

 

METHOD Close() CLASS TIPClient

 

   LOCAL nRet

 

   IF Empty( ::SocketCon )

      nRet := -1

   ELSE

      nRet := hb_inetClose( ::SocketCon )

 

      IF ::lSSL .AND. ::lHasSSL

         SSL_shutdown( ::ssl )

         ::lSSL := .F.

         ::ssl := NIL

         ::ssl_ctx := NIL

      ENDIF

 

      ::SocketCon := NIL

      ::isOpen := .F.

      ::lProxyXferSSL := .F.

   ENDIF

 

   IF HB_ISEVALITEM( ::bTrace )

      /* Call with no parameter to signal end of logging session */

      Eval( ::bTrace )

   ENDIF

 

   RETURN nRet

 

J. Lefebvre Mafact

 

Monsieur J. Lefebvre

Administrateur
MAFACT SRL

 

j...@mafact.com

unread,
Sep 17, 2024, 3:46:54 AMSep 17
to harbou...@googlegroups.com

Oups,

Not the problem as ::isOpen is correctly updated.

Will try to undestand where the problem could be !

Sorry,

 

Monsieur J. Lefebvre

Administrateur
MAFACT SRL

 

De : Jean Lefebvre <jean.l...@mafact.be> De la part de j...@mafact.com
Envoyé : lundi 16 septembre 2024 20:04
À : harbou...@googlegroups.com
Objet : [harbour] Possible bug into hbtip...

--
You received this message because you are subscribed to the Google Groups "Harbour Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-devel/edd2f8e7.1db0862.c96c1c1.3ace%40mafact.com.

Reply all
Reply to author
Forward
0 new messages