296 Commits

Author SHA1 Message Date
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
chenzo
c6f54124d5 Adds CandidateExtendedType to list the different available methods to discover new Candidates: HOST, UPNP, STUN_PEER_REFLEXIVE, STUN_SERVER_REFLEXIVE, TURN_RELAYED, GOOGLE_TURN_RELAYED, GOOGLE_TCP_TURN_RELAYED and JINGLE_NODE. 2012-03-01 10:45:18 +00:00
seb
e7aafa2e1a Fixes NPE. Catches an OutOfMemoryError related to a thread creation. Lower priority for IPv6 link-local candidate compared to IPv6 global ones. 2012-02-23 17:15:49 +00:00
seb
2591b21992 When receive a STALE-CREDENTIALS error, delay the reemission of the connectivity check for that candidate pair. Fix thread stopping when ICE Agent is free()d otherwise some threads (Stun4J Message Processor, StunKeepAliveThread, ...) stay even after the call is finished. 2012-02-07 13:29:51 +00:00
seb
8b759a4dd0 Fixes race condition when receiving a binding response from a peer and a binding request (for the same candidate pair). Also sends an 'stale credentials' error when receiving a check where username does not match any local ufrag/rfrag (typically it can happen when peer does not have finish processing transport-info/candidates IQ when STUN binding requests from other peer come. 2011-11-17 13:46:39 +00:00
seb
289651c38c Allows a GTalk controlled agent to nominate pair in ConnectivityCheckClient. 2011-11-15 10:46:27 +00:00
seb
a9c1582deb Reduces logs output when ICE is completed. 2011-10-28 08:09:49 +00:00
seb
63915fab36 Logs only some debug information in certain state and don't log stacktrace for 'no route to host' exception. 2011-10-24 13:44:07 +00:00
seb
cae2e2ec9c Fixes connection negociation in LAN for Google's ICE variant. 2011-10-18 09:50:30 +00:00
seb
d6c1ab0097 Fixes blocking state connecting/incoming call. 2011-10-17 15:28:12 +00:00
seb
bee319845b Fixes a problem with symmetrical NAT (detected with a test on 3G network). 2011-10-17 14:35:20 +00:00
seb
1d8fd98bd5 Fixes ICE failed case where Gmail user calls to Jitsi ones with SSLTCP only (when connecting to remote SSLTCP relay, the SSL handshake was not done). 2011-10-14 08:56:28 +00:00
seb
ee0c31e444 Lower log level for keep-alive and useCandidate stuff. 2011-10-13 15:04:55 +00:00
seb
44fd1c4a06 Fixes cases with peer-reflexives Candidate as well as some calls initiated from Gmail. Fixes framing length calculation and some missing implemented methods reported by Ingo Bauersachs on dev mailing-list. 2011-10-13 14:51:33 +00:00
seb
b6213785aa Handle correctly TCP framing header for both local and relayed TCP socket. Also check that we read framing length before passing up to applications. 2011-10-13 11:36:57 +00:00
seb
338409c769 Fixes Google's ICE with TCP transport. 2011-10-12 15:11:19 +00:00
seb
fab4966215 CandidatePair can be updated with useCandidateReceived even if the state is not succeeded. 2011-10-10 12:57:51 +00:00
seb
3cc3c94b63 Search the candidate pair with local and remote frag rather than local and remote address for Google ICE. Handles the TCP connect in separate threads in order to not block the start of ICE. 2011-10-07 15:23:49 +00:00
seb
169e56c22f Fixes two deadlocks. Also do not answer to a Google's binding request if we do not know yet the local/remote ufrag (this case can happen if we receive binding checks before we start ICE connectivity checks) because it will in certain circumstances choose a different active candidates than the remote peer.. 2011-10-06 14:57:05 +00:00
seb
ef03b44b3a Avoids getting to the nominators when a selected pair is available for a component. Fixes the way we know that a local pair is a relayed candidate for the FirstHostOrReflexive strategy. 2011-10-03 15:37:22 +00:00
seb
dce3326061 Synchronized Message's attributes operations as it can cause ConcurrentModificationException sometime. 2011-09-23 08:15:00 +00:00
seb
547c568d9d Avoids send error message to transaction that has already sent a response. 2011-09-22 15:33:51 +00:00
seb
6d912a0fa1 Fixes case where LocalCandidate object has not ufrag set which can lead to NullPointerException. 2011-09-21 08:25:07 +00:00