Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDT Error : 2001 : connection was broken #65

Open
andre77 opened this issue Apr 1, 2014 · 1 comment
Open

UDT Error : 2001 : connection was broken #65

andre77 opened this issue Apr 1, 2014 · 1 comment

Comments

@andre77
Copy link

andre77 commented Apr 1, 2014

Hi,

for some reason the udt library is throwing an exception, see below

SocketUDT socket = new SocketUDT(TypeUDT.STREAM);
socket.connect(new InetSocketAddress(host, port));

NetInputStreamUDT udtInput = new NetInputStreamUDT(socket);
NetOutputStreamUDT udtOutput = new NetOutputStreamUDT(socket);
final DataInputStream dis = new DataInputStream(udtInput);
final DataOutputStream dos = new DataOutputStream(udtOutput);

// the very first try to read the input stream
dis.readInt()

throws this exception

com.barchart.udt.ExceptionUDT: UDT Error : 2001 : connection was broken : recv/recvmsg [id: 0x2c2ba18e]
    at com.barchart.udt.SocketUDT.receive1(Native Method)
    at com.barchart.udt.SocketUDT.receive(SocketUDT.java:1183)
    at com.barchart.udt.net.NetInputStreamUDT.read(NetInputStreamUDT.java:83)
    at com.barchart.udt.net.NetInputStreamUDT.read(NetInputStreamUDT.java:74)
    at com.barchart.udt.net.NetInputStreamUDT.read(NetInputStreamUDT.java:63)
    at java.io.DataInputStream.readInt(DataInputStream.java:387)
    at ...

any ideas, what could be the reason?

@sinlang
Copy link

sinlang commented Oct 9, 2014

please use NetSocketUDT instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants