Niklas Therning wrote:
> 
> ezzat wrote:
>> dear HTH
>> /Niklas
>>
>>
>> I have tried all this solutions before, 
>> the first request and response is fine. but when I tried to get the
>> second
>> response, I faced with the Exception "socket write error"
>> I do looping like this
>>
>> a=0;
>> while( a <10)
>> {
>>    send request
>>    reseive response
>>    a++;
>> }
>> this exception  exst only in the second request-response 
>>
>> plz help
>>
>>   
> The write error probably means that the server has closes down the 
> connection after sending the response. If that's the case you will have 
> to reconnect and log in again before sending the second request.
> 
> HTH
> /Niklas
> 
> 


many thanks Mr HTH/Niklas

bu I must login once in the whole seesion
the procedure looks like this 

try
{
   connect with the server
  if connect and logged in
   {
       a=0;
       while( a<100)
      {
            send request
            receive response // using looping until reading all the response
message
            parse response
           a++;
      }
   }

in the first iteration  of the loop , ervery thing goes well. but in the 
second I got the exception
but when I didn't use the looping in reading, I get no exception but can't
read the whole response message

thnaks
}







-- 
View this message in context: 
http://www.nabble.com/socket-problem-tf4682668s16868.html#a13383585
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to