EDIT:
Heck with it, My rambles wasnt getting much answer and probably didnt make any sense to anyone, So i gave up and got rid of prefix.
Conclusion:
Possible Bug alert in Asyncstreams Prefix
But in a nutshell the app crashes when using prefix mode IF the 4 bytes coming from the opposite end gets malformed in such a way that it isnt correct and doesnt correspond with the length of the datapacket.
4 bytes of the total packet length doesnt work. I have to send 3 0s, and then the packet length. Then it works. But if any of those 3 0s gets corrupt, and is NOT 0, it tries to allocate too much RAM for the incoming packet, crashing the device.
Heck with it, My rambles wasnt getting much answer and probably didnt make any sense to anyone, So i gave up and got rid of prefix.
Conclusion:
Possible Bug alert in Asyncstreams Prefix
But in a nutshell the app crashes when using prefix mode IF the 4 bytes coming from the opposite end gets malformed in such a way that it isnt correct and doesnt correspond with the length of the datapacket.
4 bytes of the total packet length doesnt work. I have to send 3 0s, and then the packet length. Then it works. But if any of those 3 0s gets corrupt, and is NOT 0, it tries to allocate too much RAM for the incoming packet, crashing the device.
Last edited: