NetTalk Central

Author Topic: NetSimple server BufferUsed corrupt...  (Read 6083 times)

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
NetSimple server BufferUsed corrupt...
« 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: NetSimple server BufferUsed corrupt...
« Reply #1 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

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: NetSimple server BufferUsed corrupt...
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: NetSimple server BufferUsed corrupt...
« Reply #3 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


ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: NetSimple server BufferUsed corrupt...
« Reply #4 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

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: NetSimple server BufferUsed corrupt...
« Reply #5 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

ramiro

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: NetSimple server BufferUsed corrupt...
« Reply #6 on: March 22, 2014, 11:39:34 AM »
Hi Bruce,
same result in application server and C8 NetTalk 6

regards,
Ramiro