i trying upload more 70 images.i can upload 19 images @ time server allows maximum of 19 files only.so tried loop image upload process in loop within intent service .but uploads 1st 19 images enters loop following :
i/system.out(1234): [cds]rx timeout:50000 i/system.out(1234 ): [socket][1] connection www.example.com:80;localport=1234(50000) i/system.out(1234 ): [cds]connect[www.example.com/100.00.00.000:80] tm:50 d/posix(1234): [posix_connect debug]process www.example:80 i/system.out(1234 ): [socket][/192.168.0.0:1234] connected i/system.out(1234 ): [cds]rx timeout:50000
the first loop executes second loop onwards above exception. how make work in loop.also,i have added :
private static final long conn_mgr_timeout = 10000; private static final int conn_timeout = 50000; private static final int so_timeout = 50000; httpparams params = new basichttpparams(); connmanagerparams.settimeout(params, conn_mgr_timeout); httpconnectionparams.setconnectiontimeout(params, conn_timeout); httpconnectionparams.setsotimeout(params, so_timeout); httpclient httpclient = new defaulthttpclient(params);
how can make work.i appreciate help.
Comments
Post a Comment