I am looking for ways to improve the performance of my WCF communications over a mobile modem.
I have a system where the clients are connected to the internet via a mobile (GPRS/3G/HSDPA) connection. This is NOT a windows mobile client, it is a full XP Professional system running .Net4.0. The clients basically use a USB mobile modem (SIM card etc)
to get their internet connection. The server is connected directly to the internet via broadband.
My WCF interface has 2 main methods, one sends 2 int values from the client to the server and the other sends 3 images (JPGs) to the server. As you can see one is going to take less than a second and the other is going to take maybe 30-60 seconds depending
on the images size and connection speed.
If we have a good mobile modem connection to the internet then everything works perfectly.
The problem I have is a lot of the time I do not have a good connection. The timeout on the WCF binding is set to 120 seconds. This gives the images enough time to get across even if the connection is a bit slow.
The problem comes when the connection stops - this is a network (mobile network) problem, something like the signal drops etc. Communications never recovers.
At this point after about 10 seconds of inactivity (no communications) I know that the connection will never recover. At this point the best thing I have found to do it res
View Complete Post