318 Commits

Author SHA1 Message Date
paweldomas
26b72cbb20 Decreased receive buffer size in PseudoTcpSocketImpl that caused invalid packets to be logged into .pcap file. Filled missing javadoc. 2013-03-22 11:49:34 +00:00
paweldomas
e4b0014b88 Applied part of the patch submitted by Carl Hasselskog on dev list. Fixed a NullPointerException that occurred for instance when an SSLSocket called getTcpNoDelay() on PseudoTCPSocket. PseudoTcpSocketImpl returned null but the SSLSocket assumed it would be true/false. Improved logging to better detect if someone is trying to get some other option that would return null. 2013-03-22 11:41:26 +00:00
emcho
f665337062 Deals with developer unreliability issues (fixes wrong detection for ICE completion) 2013-03-21 19:14:55 +00:00
emcho
a9d4dc4406 Keeps the Conn Check Server going until we free the agent at the end of a call, so that we can answer STUN binding requests (that Chrome's WebRTC impl seems to be using to determine if we're still there 2013-03-21 00:30:42 +00:00
lubomir.marinov
4cc6d4ab72 Fixes warnings. 2012-12-12 01:21:04 +00:00
lubomir.marinov
362722f555 Prevents a NullPointerException in Connector#stop(). Removes a few @Override annotations from abstract method implementations because they are not compatible with Java 5. 2012-11-06 12:17:07 +00:00
chenzo
59f3034f00 Adds HarvestingTimeStat calls. 2012-10-09 07:42:39 +00:00
chenzo
19c2d4767c Improves harvesting time stats: 1) number of harvests and 2) total harvesting time for each harvesters. 2012-10-05 16:05:17 +00:00
chenzo
523236d6ce Corrects harvesting time for disabled harvester. 2012-10-05 14:11:19 +00:00
chenzo
9d94eba147 Updates rel-addr/rel-port management. 2012-10-05 12:34:11 +00:00
emcho
672a43c017 Changes javadoc directory to match those of Jitsi and libjitsi for easier nightly generation 2012-10-04 16:50:54 +00:00
chenzo
6cbdcae872 Adds extra function to export the total harvesting time. 2012-10-04 09:09:06 +00:00
chenzo
ac5cf14be0 Adds extra function to export harvesting time. 2012-10-02 09:23:40 +00:00
chenzo
e4c70ba522 Adds functions to get the host/reflexive/relayed address of the selected candidate pair. 2012-10-01 09:22:06 +00:00
chenzo
8f51251658 Applies first part of Carl Hasselskog patch: UPnP potential deadlock, Connector closing, CandidateHarvesterSet thread pool merged. 2012-09-12 10:03:22 +00:00
paweldomas
0ee1c41582 Changes to Pseudo Tcp:
- fixes bug with connect packet and disabled window scaling
- disables window scaling by default
- adds isConnected method in PseudoTcpSocket
2012-09-04 18:20:24 +00:00
paweldomas
40e8c691e1 Added support for timeout on read and write operations for PseudoTcpSocket 2012-08-25 09:04:03 +00:00
chenzo
71e4dec419 Corrects connectivity check client nerver terminate (Jingle only). Reported by Lyubomir Marinov: org.ice4j.ice.ConnectivityCheckClient.run() will skip a check beat. 2012-08-24 15:07:32 +00:00
chenzo
3a470c287e Corrects the problem of truncated datagram packets at reception (for packets truncated by the java stack and not by the network). 2012-08-23 12:19:51 +00:00
chenzo
da600aef0c Corrects STUN packet length computation as pointed outby Pawel Domas. 2012-08-22 09:12:51 +00:00
chenzo
e161411a9b Improves detection of STUN packets (MAGIC_COOKIE and valid length header field). 2012-08-21 16:19:00 +00:00
paweldomas
0856c4dfdf -fixes few bugs
-code style improvements
-added PseudoTcpSocketFactory(usage changed, see test.IcePseudoTcp example for reference)
2012-08-21 14:24:10 +00:00
chenzo
139ac8a12f Handles TCP socket when closed by remote host (which previously triggers numerous illegal length excpetion). 2012-08-21 14:13:32 +00:00
paweldomas
757aef02d4 -fixed race condition in notification about new data available for reading
- default MTU set to 1450
2012-08-16 12:00:32 +00:00
paweldomas
02a9f7e7af Includes ByteFifoBufferTest in the test suite 2012-08-13 07:43:09 +00:00
paweldomas
757ea6196c Fixes:
- infinite recursion in write() of PseudoTcpOutputStream
- write/read with offset of pseduo tcp streams
Adds:
- unit tests for all read/write methods of pseudo tcp streams
2012-08-13 07:39:18 +00:00
lubomir.marinov
f0dcc54a20 Removes Override annotations to fix compilation errors. Replaces tabs with spaces. 2012-08-12 17:40:08 +00:00
paweldomas
2137c337ef Fixes pseudoTcp unit tests 2012-08-11 07:43:28 +00:00
chenzo
dfcde11376 Adds password support for google relayed candidate. 2012-08-10 13:34:49 +00:00
paweldomas
f2529200be - PseudoTcpSocketImpl extends java.net.SocketImpl
- fixed example IcePseudoTcp
- pseudo TCP tests are included in test suite
2012-08-10 09:03:29 +00:00
lubomir.marinov
290572f32f - Adds Eclipse .project and .classpath files to ease the import of the project into the IDE.
- Removes Override annotations on interface implementations to avoid compilation errors.
- Overrides hashCode in a class which overrides equals in order to maintain the general contract of the hashCode method and to avoid possible (future) issues related to hashtables.
2012-07-30 21:12:49 +00:00
chenzo
12e275f640 Corrects null pointer exception when trying to log a packet whereas the socket is already closed. 2012-07-26 14:15:20 +00:00
chenzo
271dc3b9b4 Reduces log information about harvesting time. 2012-07-19 14:07:44 +00:00
paweldomas
fa8ec11955 Added pseudoTCP 2012-07-18 13:38:19 +00:00
chenzo
46400e0009 Merges code about checking ports for HostCandidateHarvester. 2012-07-13 07:18:59 +00:00
chenzo
6d42555340 Adds log information about candidate harvest time for each harvester. 2012-07-11 16:33:03 +00:00
chenzo
bdce4653bd Applies patch 5 and 6 from Daniel Pocock: [jitsi-dev] refreshing patches. 2012-07-11 13:10:15 +00:00
chenzo
5f278f72e4 Corrects disable IPv6 properties variable name (StackProperties) and its use (HostCandidateHarvester) as reported by Daniel Pocock. 2012-07-09 08:26:28 +00:00
chenzo
25574cea72 Applies patch 1, 2, 3, 4 and 7 from Daniel Pocock: [jitsi-dev] refreshing patches. 2012-07-06 15:39:46 +00:00
chenzo
891392e18a Puts the Agent into WAITING state when creating a new media stream. This way all incoming connectivity checks are added to the preDiscoveredPairsQueue until this Agent turn back intro RUNNING state. 2012-07-06 11:55:21 +00:00
chenzo
c17fa4675a Corrects a java under MAC OSX bug when dealing with ipv6 local interface:
the destination address (as well as the source address) under java / MAC OSX
must have a scope ID, i.e.  "fe80::1%en1".
2012-07-04 16:19:22 +00:00
chenzo
7634806e11 Corrects heap space consumption when TCP DelegatingSocket receives a packet with no data. 2012-06-28 14:18:40 +00:00
chenzo
525d7e14d1 Corrects reception of hole punch packets for TCP socket. 2012-06-22 15:57:34 +00:00
chenzo
5434a8ab41 Corrects detection of STUN packets if the current UDP datagram has no PDU. 2012-06-19 13:27:50 +00:00
chenzo
b0c3647242 Corrects RTP adresses logged in pcap file. Adds an informational log when the RTP loss rate is > 5% (at most an entry each 5 seconds). 2012-06-12 16:11:06 +00:00
chenzo
d5441d45f3 Corrects the received STUN packet address logged in pcap file. 2012-06-08 16:47:46 +00:00
chenzo
632d53ac67 Corrects logged addresses for relayed packets. 2012-05-29 13:16:17 +00:00
damencho
f36c7609a8 Moves UPnP search for WANIPConnection and WANPPPConnection when harvesting is started, to avoid block when harvester is created. 2012-04-11 12:57:11 +00:00
seb
c8d9101610 Fixes thread deadlock in ConnectivityCheckClent, this patch has been contributed by amrinder on the issues tracker of ice4j. 2012-03-09 11:06:25 +00:00
seb
163fead8ad Adds some patchs contributed by Daniel Pocock that adds additionnals logs and fixes some problems related to race conditions. 2012-03-09 10:18:51 +00:00