Le 27/08/15 04:15, roland a écrit :
> Dear Sir,
>
>  
>
> I use Mina to setup a UDP server to let people download files.
>
> I split a file to many segments of 1KB size.
>
> If ten clients download the file, it works fine. But if 50 or more clients
> download the files at the same time,
>
> The server will send a same segment many times continuously to one client. 
>
> Actually I only let the server send all the segments one by one.
>
> I think the bandwidth may be jammed while 50 or more clients download.
>
> But why are so many same packets received by a client?

No idea. I guess there is something wrong in your server code, but it's
hard to say, given the information you have provided.

Blind guess : your server is not selecting the right segment to be sent
to the client


MINA does not magically send many times a packet to client : it just
pushes an UDP packet once and only once (if it's lost, it's lost). So
that means your server is pushing the same packet to a session many
times. At thus point, I would suggest you add the logger filter in your
chain to see what's going on.

Reply via email to