{"action":"created","issue":{"url":"https://api.github.com/repos/nkzawa/socket.io-client.java/issues/143","labels_url":"https://api.github.com/repos/nkzawa/socket.io-client.java/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/nkzawa/socket.io-client.java/issues/143/comments","events_url":"https://api.github.com/repos/nkzawa/socket.io-client.java/issues/143/events","html_url":"https://github.com/nkzawa/socket.io-client.java/issues/143","id":71560807,"number":143,"title":"Connection timeout","user":{"login":"MuhammadKamal","id":11195341,"avatar_url":"https://avatars.githubusercontent.com/u/11195341?v=3","gravatar_id":"","url":"https://api.github.com/users/MuhammadKamal","html_url":"https://github.com/MuhammadKamal","followers_url":"https://api.github.com/users/MuhammadKamal/followers","following_url":"https://api.github.com/users/MuhammadKamal/following{/other_user}","gists_url":"https://api.github.com/users/MuhammadKamal/gists{/gist_id}","starred_url":"https://api.github.com/users/MuhammadKamal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuhammadKamal/subscriptions","organizations_url":"https://api.github.com/users/MuhammadKamal/orgs","repos_url":"https://api.github.com/users/MuhammadKamal/repos","events_url":"https://api.github.com/users/MuhammadKamal/events{/privacy}","received_events_url":"https://api.github.com/users/MuhammadKamal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nkzawa/socket.io-client.java/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-28T11:22:01Z","updated_at":"2015-05-03T13:59:03Z","closed_at":null,"body":"I try to reconnect if the connection timed out what happens it just keep showing endless timeout message\r\n```java\r\n).on(Socket.EVENT_CONNECT_TIMEOUT, new Emitter.Listener() {\r\n                @Override\r\n                public void call(Object... objects) {\r\n                    Log.e(\"timeout\", \"true\");\r\n                    socket.connect();\r\n                }\r\n            });\r\n```\r\nI commented these lines trying to avoid the connection timeout:\r\n```java\r\n           IO.Options opts = new IO.Options();\r\n            opts.reconnection = true;\r\n            opts.reconnectionDelay = 1000;\r\n            opts.timeout = 10000;\r\n```\r\nAnother question does it support SSL because I searched a lot with no use.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nkzawa/socket.io-client.java/issues/comments/98484167","html_url":"https://github.com/nkzawa/socket.io-client.java/issues/143#issuecomment-98484167","issue_url":"https://api.github.com/repos/nkzawa/socket.io-client.java/issues/143","id":98484167,"user":{"login":"MuhammadKamal","id":11195341,"avatar_url":"https://avatars.githubusercontent.com/u/11195341?v=3","gravatar_id":"","url":"https://api.github.com/users/MuhammadKamal","html_url":"https://github.com/MuhammadKamal","followers_url":"https://api.github.com/users/MuhammadKamal/followers","following_url":"https://api.github.com/users/MuhammadKamal/following{/other_user}","gists_url":"https://api.github.com/users/MuhammadKamal/gists{/gist_id}","starred_url":"https://api.github.com/users/MuhammadKamal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuhammadKamal/subscriptions","organizations_url":"https://api.github.com/users/MuhammadKamal/orgs","repos_url":"https://api.github.com/users/MuhammadKamal/repos","events_url":"https://api.github.com/users/MuhammadKamal/events{/privacy}","received_events_url":"https://api.github.com/users/MuhammadKamal/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T13:59:03Z","updated_at":"2015-05-03T13:59:03Z","body":"The problem is in the event of EVENT_CONNECT_TIMEOUT it keeps showing this message:\r\ntimeout --- true    endlessly\r\nI don't if it's because i'm calling socket.connect(); inside the event or because i'm using \r\nengine.io-client-0.4.1.jar?\r\nand that's what happens  inside the event:\r\n.on(Socket.EVENT_CONNECT_TIMEOUT, new Emitter.Listener() {\r\n                @Override\r\n                public void call(Object... objects) {\r\n                    Log.e(\"timeout\", \"true\");\r\n                    socket.connect();\r\n                }\r\n            });"}}