View Single Post
  (#5 (permalink)) Old
ecarmody Offline
Thumbs Must Hurt
 
Posts: 80
Join Date: Apr 2005
Location: Portland, OR., USA
Model: 8100
Carrier: Cingular
Default 11-16-2005, 12:07 PM

In my opinion, the communication contact and connection is made upon return of the (SocketConnection)Connector.open( url ) call. If this returns without error then you've got a connection.

You also indicate that you sent the data, meaning you did a write() of some kind. I assume then that your connector.open() returned successfully and the .write() as well.

At that point, I would question as to the server side is function properly in generating a proper response. Also, I would debug your read thread. Does the loop doing .read() return any bytes ? If you receive some bytes but it stalls at the end and times out (does not receive a EOF), are you checking for a -1 return from the read()?

Eric