Giter Site home page Giter Site logo

udt's Issues

mismatched delete fix

change line 202 of core.cpp from
delete m_pPeerAddr;
to
(AF_INET == m_iIPversion) ? delete (sockaddr_in*)m_pPeerAddr : delete (sockaddr_in6*)m_pPeerAddr;

Modified congestion control does not work

I extend the default congestion control as follows:
public class Test extends CCC{
public Test(){
System.out.println("I am here!");
}
public void setCwnd(int win){
setCWndSize(win);
}
}

I set the customized CC for the SocketUDT instance as follows:
SocketUDT socket = new SocketUDT(TypeUDT.STREAM);
socket.setOption(OptionUDT.UDT_CC, new FactoryUDT(PCC.class));
socket.connect(new InetSocketAddress("127.0.0.1", 5555));
Object obj = socket.getOption(OptionUDT.UDT_CC);
Test test = (Test) obj;
test.setCwnd(1200);

The point is after this instant the congestion window remains fixed at 1200. I transfer huge files but the window does not change. The expected behavior here is that the default congestion control works as usual as I have not overridden any of the superclass methods. Let me know if this is a bug or I am getting something wrong here. Thank you.

DTLS Support

Is there a way to however use the UDT library in combination with DTLS ?

timeouts not working as expected in datagram mode

OK; we've been using UDTv4 implementation for quite some time now, still to our surprise we ran into some issues when trying to tweak the performance. We've been using UDT in data-gram mode.

To our surprise, the recvmsg function waits for the entire period of UDT_RCVTIMEO even if there are tons of messages already in the buffer.. is it by design? It's very easy to reproduce (..) just set timeout to say 15000 ms (..) send a few messages 40 bytes each (..) and see the socket blocking for minutes.

That results in extremely undesired scenarios (..) we've been seeing the receiving socket seemingly 'receiving' data long long after... the sending node... went offline. As perceived by the upper layers of the software. I mean come on, the variable is called a timeout.. not a polling time or whatever.

So if we set UDT_RCVTIMEO to a small value say 100ms .. is it just the polling time for results and would big messages be retrieved in any case? or is it the time after an entire datagram was not retrieved then the function returns an error?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.