Can anyone help? The code below loops 10 times where each loop does a URL connection using either http or https. When using http protocol everything works fine.
When using https, every other message is sent correctly while the incorrect messages fail silently (no message is sent to the server and no exception is thrown). We know no packets are sent because we are using echoport to track packets. If the delay between messages is set to 1ms, then all https messages are sent correctly. private void sendHttpsMsg(long id) { String urlString = "https://192.168.1.104/msg"; //String urlString = "http://192.168.1.104/msg"; try { URL url = new URL(urlString); Log.i("httpsURL",url.toString()); URLConnection connection = url.openConnection(); InputStream is = connection.getInputStream(); Scanner in = new Scanner(is); while (in.hasNextLine()) Log.i("httpsURL",in.nextLine()); } catch (Exception ioe) { Log.i("httpsURL",ioe.toString()); } } private class HttpMsgThread extends Thread { HttpMsgThread() { super("httpsMsg"); } public void run() { for(int i=0; i<10; i++) { sendHttpsMsg(getId()); try {Thread.sleep(10000);} catch (InterruptedException e) {} } } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---