tcp comm, forte crashes [message #1849289] |
Tue, 11 January 2022 13:50  |
Eclipse User |
|
|
|
Hi,
i try to send a string bigger than 1500 bytes over tcp (usually strings). I use the Server Client FBs and standard encoding/fbdk (tried it also with raw[]). When i send the message with my client, forte on Server side crashes. I'm connecting two raspberryPi4 with a switch.
Is there something i am missing? Is the problem the MTU with TCP? It runs fine with strings smaller than 1500 bytes. I also implemented a commLayer with ZeroMQ, which works with larger strings (with fbdk encoding).
Maybe someone knows this problem or can tell me what i'm doing wrong :-).
Thanks,
David
|
|
|
|
Re: tcp comm, forte crashes [message #1849296 is a reply to message #1849291] |
Tue, 11 January 2022 21:33   |
Eclipse User |
|
|
|
unfurtunately yes the problem is on the server side. currently the tcp layer works with a statically allocated buffer. you can configure the buffer size in cmake under the option FORTE_IPLayerRecvBufferSize. The default is 1500. In order to set this option you need to tick the advanced check box in cmake. I hope this helps.
Cheers,
Alois
|
|
|
|
Powered by
FUDForum. Page generated in 0.03736 seconds