NetTalk Central

NetTalk FTP => FTP - Ask For Help => Topic started by: ramiro on March 19, 2014, 10:46:44 AM

Title: NetSimple server BufferUsed corrupt...
Post by: ramiro on March 19, 2014, 10:46:44 AM
Netsimple Server with Wholepack and SSL.
Upon receiving a packet from a client about 170,000 bytes in errortrap have this error:
Error - BufferUsed corrupt in BigQueue or you are trying to clear too much data

however, the packet is received correctly, but this error could generate other errors later?

thanks in advance.
Title: Re: NetSimple server BufferUsed corrupt...
Post by: Bruce on March 19, 2014, 11:30:28 PM
just so I'm clear - are you connecting to the server from a _nettalk_ web client procedure? Also with wholePacket turned on?

cheers
Bruce
Title: Re: NetSimple server BufferUsed corrupt...
Post by: ramiro on March 20, 2014, 04:18:25 PM
Bruce.
No, is from NetTalk simple client, Also with wholePacket turned on
and SSL connection, both sides with certificate and key  (.PEM)

thank you
Title: Re: NetSimple server BufferUsed corrupt...
Post by: Bruce on March 20, 2014, 10:18:52 PM
sorry, yes, that's what I meant. I'm going to send you a file with some extra error trapping information in it - (unless you can maybe send me an example?)
Which build of NetTalk are you using?

cheers
Bruce

Title: Re: NetSimple server BufferUsed corrupt...
Post by: ramiro on March 21, 2014, 09:48:53 AM
Hi Bruce,
in this application I am using C6 9046 and NetTalk 4.57 9049

This is part of the code:
! data
peticiones           queue,pre(Pet)
IP                     cstring (NET:IPStringSize+1)
OnSocket               NET:SocketType
SockID                 long
okfull                 byte
detalle                string(524288) ! contiene los detalles de la peticion:
                                      ! tipo y los datos de consulta o actualizaciĆ³n
                     end

!  in Process
    of NET:SimpleWholeDataPacket
    !-------------------------------------
    ! We received a whole packet
      up:ip = self.packet.Fromip
      up:onsocket = self.packet.OnSocket
      up:SockID = self.packet.SockID
      clear(pet:detalle)
      if (self.WholePacketQueue.WholeBinDataLen) > MaxStringSize
        pet:detalle = self.WholePacketQueue.WholeBinData [1 : MaxStringSize - 11 - self.WholePacketQueue.WholeBinDataLen]
      else
        pet:detalle = self.WholePacketQueue.WholeBinData [1 : self.WholePacketQueue.WholeBinDataLen]
      end

      .....

! en error trap
  PARENT.ErrorTrap(errorStr,functionName)
  ! [Priority 7500]
  struerrenv = errorstr
  cerrenv += 1
  Actualizalog(clip(errorstr),0,'NetTalk')
  ....

Thank you
regards
Title: Re: NetSimple server BufferUsed corrupt...
Post by: ramiro on March 21, 2014, 11:40:19 AM
Hi Bruce,
our server application is made in C6 and NetTalk 4.57
the problem occurs when the client is in C8 and NetTalk 6
We will migrate the app. server  to C8 and NetTalk 6
but now I doubt whether the problem will be presented in the client application developed with C6 and NetTalk 4.57

Thank you
regards
Ramiro
Title: Re: NetSimple server BufferUsed corrupt...
Post by: ramiro on March 22, 2014, 11:39:34 AM
Hi Bruce,
same result in application server and C8 NetTalk 6

regards,
Ramiro