Add substr for reduce message in socket udp

I many time error message too long in socket, for stop that I reduce arg in parameters