BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Java.IO.IoException :MAX connections (http://www.blackberryforums.com/showthread.php?t=137912)

jeyaprakash.c 07-01-2008 04:06 PM

Java.IO.IoException :MAX connections
 
Am trying to open several http connections to a server one after another . After opening and closing around 30 connections , my application throws the above error and refuses to make any further connections. Interestingly though, after switching my radio off for a few seconds and then turning it back on, Everything works fine again for another 30 connections. it seems whatever i do to kill the connections programatically( myconnection.close(), myconnection=null etc) simply fails.

please help

irlennard 07-02-2008 06:54 AM

Do you open any input/output streams from your connections? You need to call close() on these too otherwise I don't think the connection will be properly closed.

-- Ian


All times are GMT -5. The time now is 02:11 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.