-
-
Notifications
You must be signed in to change notification settings - Fork 140
-
so I was testing receiving deliver_sm as a client and noticed a custom parameter I had introduced had the last 4 characters missing always. and I came across this line in the client.py code:
raw_pdu = self._socket.recv(length - 4)
I have updated it to
raw_pdu = self._socket.recv(length)
and now the full parameter data is received alright. but does anyone know why it was there in the first place? I don't want to launch and have problems later.
or if it is okay like this then I will leave it like that.
Beta Was this translation helpful? Give feedback.
All reactions
Hi @Wahib13,
length includes the length field itself, which is 4 bytes. So that the length field is already read, we have to read the rest length - 4 bytes.
Replies: 2 comments
-
Hi @Wahib13,
length includes the length field itself, which is 4 bytes. So that the length field is already read, we have to read the rest length - 4 bytes.
Beta Was this translation helpful? Give feedback.
All reactions
-
okay will run some more tests on Monday to confirm. thanks for the reply
Beta Was this translation helpful? Give feedback.