Discussion:
[Ikvm-developers] Socket (read-)timeout problem
Martin Gerhardy
2016-11-28 06:10:51 UTC
Permalink
Hi.

I've created a small proof of concept for a socket error we have with rabbit mq and ikvm.

the error doesn't occur with java (on linux)

attached is a patch that handles the WSAEWOULDBLOCK winsock error - but this is not working properly - see the comments.

https://github.com/mgerhardy/ikvm-socket-error

i've pushed the jars and the dlls for easy testing, just install rabbitmq and run the examples. after 15 seconds you get a read timeout on the sender, because it never receives anything.

does anyone here have an idea about this issue?

regards
Martin
Martin Gerhardy
2016-11-28 11:24:39 UTC
Permalink
It looks like the read timeout in java is -1 (infinity)

public class NetworkClient {
/* Default value of read timeout, if not specified (infinity) */
public static final int DEFAULT_READ_TIMEOUT = -1;

and the read timeout in ikvm/winsock/csharp is 15 seconds.

That might produce problems ;)

Regards
Martin

Loading...