Oh, yeah, the size of the buffer was 2048 bytes. I raised it to 16384 so it should be enough now.
I will test it later, thanks a lot !