UDP socket

I have an UDP server that receives packets from the client with polling method. The server is able to receive 49 packets of 1024 Bytes each but it doesn’t receive the 50th one. Is there a limit due to trasmission from client to server? Is it possible that all the packets of transmission are memorized in a big buffer and there is a limit on this buffer?
Thanks

This is unusual!

Debug your code, maybe some exception was thrown.

Can you show us the code of the receive loop?