12-10-2008 11:59 PM
I am developing application which read data from net.
how to increase SocketConnection Limit . ie In MDS it shows a error like
12-11-2008 04:01 AM
You can change the limit specified in your BES. This KB article might get you started:
What Is - HTTP 413 Request Entity Too Large
Article Number: DB-00623
04-29-2009 01:23 PM
I have two questions.
1) Is there a similar limit for Wifi, DirectTCP, and WAP 2.0?
2) I am getting this error in device simulator and the simulator is using the mds simulator.
I think it is not possible to use any other connection than mds in the device simulator. Is there a way to change this limit in the mds simulator so I can use mds while developing, and I can enforce WiFi, DirectTCP, or WAP2.0 in my deployment?
04-29-2009 01:34 PM
In the simulator you can use Direct TCP, just code deviceside=true and it should work for you, without requiring the MDS.
Sorry I don't know if there are limits for the other connections.
You can always break and reestablish a connection - then the count is reset to 0.
04-29-2009 01:47 PM
I didn't know we could use direct tcp in device simulator.
Thanks a lot.
Any recommendations for when to break and reestablish?
Should I wait for the exception to happen? Should I keep a count of bytes I am sending and do it when it is more than certain number? Any best practices on this?
04-29-2009 01:59 PM
Must admit, the advice to break and reestablish is theory. Our socket code sends only small amounts of traffic at a time. We have put code in there so that it will break after 128K, but I'm not sure that has ever been tested. We count, which no great overhead since we wanted to know how many bytes were sent and received anyway and break when the total for the current connection plus next transmission exceeds 128 KB, I've never checked if this limit is one way or both together, we just went conservative and add both together.
I believe the actual limit changes depending on the level of BES, from memory I think it is up to about 1MB in the later levels. So you might be better waiting for it to break if you have large things to send.
Sorry I can't be more helpful.
07-27-2009 04:35 PM
I did some testing. It turnes out that I can send big chunks of data over a socket connection through mds.
On the other hand, if I try to send data more than 128kb over an http connection through mds, then I get request entity to large error.
So it seems like there is no limitation on a socket connection and the limitation is only on the http connection.
Could you comment on this?