Re: HTTP socket timeout issues

"Ryan, Brent" <[email protected]> Sat, 31 Jan 2015 16:50:08 +0000
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <D0F271CC.1D8BF%[email protected]>
You can ignore this…  It turned out to just be a bug in etcd + proxies + firewalls blocking access so the error makes total sense now.

Thanks,
--
Brent Ryan

From: <Ryan>, Brent Ryan <[email protected]<mailto:[email protected]>>
Date: Friday, January 30, 2015 at 10:44 PM
To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Subject: HTTP socket timeout issues

Has anyone run into this before?  So we have an HTTP client that runs within IKVM within a .Net IIS application and this client makes a simple call to our ETCD cluster with a 15 second connect timeout and none of the java services that are using this same library have any sort of issue with connections to this host, but for some reason our .Net application that goes through IKVM is hitting this connection timeout window almost every time (but sometimes it works in less then a second).

This is the stack trace we see on connection timeout.   Any ideas?

java.net.SocketTimeoutException: connect timed out
at ikvm.internal.JNI.JNU_ThrowByName(JNI.java:57)
at java.net.DualStackPlainSocketImpl_c.waitForConnect(DualStackPlainSocketImpl_c.java:184)
at java.net.DualStackPlainSocketImpl.waitForConnect(DualStackPlainSocketImpl.java:282)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:82)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:341)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:202)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:183)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:187)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:393)
at java.net.Socket.connect(Socket.java:579)
at com.squareup.okhttp.internal.Platform.connectSocket(Platform.java:106)
at com.squareup.okhttp.Connection.connect(Connection.java:152)
at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:171)
at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:120)
at com.squareup.okhttp.internal.http.RouteSelector.next(RouteSelector.java:135)
at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:314)
at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:240)
at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:424)
at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:374)
at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:469)



--
Brent Ryan

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers