Changing getImage MTU (receive window)

Hi,

I have an application (snippet below) that receives image, runs fine, but like a dog when the network latency increases.

The issue is the MTU size, as when it is increased (windows reg) the speed dramatically increases. I can see solutions to this issue if I want to send the image over my own sockets, writing a server application as well.

Can I change the MTU/receive window thatgetImage uses?

URL MyURL = new URL(imgName);

pic=getImage(MyURL );

Tracker.addImage( pic,imgID++);

Tracker.waitForAll();

Thanks

Maddiman

[590 byte] By [maddimana] at [2007-11-26 16:06:14]
# 1

> Can I change the MTU/receive window that

> getImage uses?

No, because getImage() doesn't use an MTU/receive window. It just does I/O via the URL. You can't change the MTU or receive window of a URL either. You can do it for a Socket via Socket.setReceiveBufferSize(), or there are Windows registry tweaks to do it globally. If you're on Windows you should definitely do one or the other because the default of 8k is pathetically small.

ejpa at 2007-7-8 22:28:23 > top of Java-index,Core,Core APIs...