Commit Graph

21 Commits

Author SHA1 Message Date
Kleissner
de9b67e751 UDT: Minor refactor of udtSocketSend.processDataMsg 2021-11-03 21:07:43 +01:00
Kleissner
4bb8ac7adf UDT: Fix critical bug in udtSocket.Write use after return. CC #43 2021-11-03 20:57:04 +01:00
Kleissner
62c262e2b6 UDT: Fixing critical bugs in heap code. Fixing endless loops! #51 #49 2021-11-03 20:52:32 +01:00
Kleissner
0f546caed0 UDT: Fix a bug in udtSocketRecv.ingestData. The wrong sequence identifier was pushed to the lossList. #43 2021-11-01 09:09:30 +01:00
Kleissner
8b593975b6 UDT: Fix closing channel twice in race condition when calling udtSocket.Close() multiple times 2021-11-01 09:02:35 +01:00
Kleissner
81b409d5a4 UDT: Fix divide by zero. 2021-11-01 08:50:33 +01:00
Kleissner
0368752324 UDT: Fix bug in NativeCongestionControl.OnNAK that causes a crash when the provided losslist is empty 2021-10-28 17:16:14 +02:00
Kleissner
9ddca35277 Transfer: Set max packet size.
udt: Improve error messages. Fix bug in udtSocketSend.processDataMsg, the header was not considered in the max size.
webapi: New /file/view API which is useful for immediate testing of file transfer.
2021-10-28 04:06:10 +02:00
Kleissner
b0f98fdd4f UDT: Simplify closing behavior - removing multiplexer level for reporting close of listener/socket back to upstream provided closer. 2021-10-25 09:56:28 +02:00
Kleissner
13ef42ac39 UDT: Reduce complexity of multiplexer, removes a race condition, increases stability. pktOut was not needed. 2021-10-25 09:46:36 +02:00
Kleissner
e476c7e40b UDT: Remove unnecessary shutdownEvent waiting in udtSocket.Close. permitLinger only allowed for server, unless closed by client. 2021-10-25 09:36:59 +02:00
Kleissner
7afc61edef UDT: Remove unnecessary and confusing sockShutdown. Elevate linger mode to full listen/send mode, which is necessary to combat the shutdown message race condition. Close #47 close #45 2021-10-25 09:12:33 +02:00
Kleissner
0c80eb2e3d UDT: Fix ddos in ackEvent. It sets ackTimerEvent which triggers ackEvent ... an endless loop. ackTimerEvent is actually not needed at all. 2021-10-25 08:42:24 +02:00
Kleissner
1ec20e6386 UDT: Fix critical bug in multiplexer.goWrite. It was overwriting packets on the fly. A new buffer is needed for each outgoing packet. 2021-10-25 07:56:35 +02:00
Kleissner
2984dc6b79 UDT: Fix another critical bug. udtSocketRecv.farNextPktSeq was not incremented.
Note: The open bug #43 is still pending, although it will give a warning now. The warning can be used as debugging point.
2021-10-25 04:50:40 +02:00
Kleissner
2df8dba4fe UDT: Temporary bush fix for buggy code #43. Packet loss is currently ignored, but at least it works now. The function udtSocketRecv.sendNAK is an endless loop and needs a rewrite. 2021-10-25 04:12:44 +02:00
Kleissner
57450e506f UDT: Fix another critical new bug in getRcvSpeeds. CC #43 2021-10-25 04:05:53 +02:00
Kleissner
b0d71c2dc7 UDT: Fix critical bug in reevalSendState 2021-10-25 03:42:04 +02:00
Kleissner
f6bbd02a01 Transfer: Change virtual connection from net.PacketConn to channels which is faster and less complex.
Improve termination behavior and documentation of it.
2021-10-24 06:27:23 +02:00
Kleissner
153ca78ed7 UDT: Removing MTU in favor of MaxPacketSize. 2021-10-24 04:59:14 +02:00
Kleissner
75e3d9a42e Initial UDT implementation for file transfer.
New function RequestFileTransferUDT to download files from other peers.
2021-10-24 04:26:30 +02:00