599 Commits

Author SHA1 Message Date
Paul Gregoire
39466ac70c Added warning log entry for out of range port on packet 2015-11-06 08:43:58 -05:00
Paul Gregoire
3f9bf0b17c Merged log message 2015-11-05 19:57:11 -05:00
damencho
3a1fee0aff Rename MultiplexingTcpHostHarvester to TcpHarvester. 2015-11-05 15:34:46 -06:00
damencho
c03cfaa674 Removes adding mapped addresses as they are configured from the outside. They can be different settings for that, not only coming from aws harvester. 2015-11-05 15:28:03 -06:00
damencho
9512d303a2 Makes AwsCandidateHarvester reuses the harvest logic from super. 2015-11-05 15:19:26 -06:00
damencho
6a97941d68 Removes unused publicAddress field. 2015-11-05 13:55:03 -06:00
Paul Gregoire
d756d7d72a Added setting of packet port to 0 to prevent out-of-range error. 2015-11-05 12:10:22 -05:00
Paul Gregoire
c0edd9cc97 Created alternate versions of createConnectRequest and createConnectionAttemptIndication to allow passing transaction id as bytes to permit use of the MessageFactory by turnserver. 2015-10-31 09:45:43 -04:00
Ingo Bauersachs
7a17c4e453 Fix formatting of contribution from PR#30. 2015-10-30 23:55:25 +01:00
Ingo Bauersachs
bfa3b487d1 Merge pull request #30 from robertoandrade/bugfix/tcp-harvester-interface-reuse
Fixing MuxServerSocketChannel when binding to "anyLocalAddress" and attempting to reuse socket by binding a particular interface
2015-10-30 23:17:02 +01:00
Paul Gregoire
9e8c9690ed Added builders to allow external use by other projects. 2015-10-30 22:56:03 +01:00
Paul Gregoire
847f9a6e4e Fixed to prevent failure with systems that dont support window scaling. 2015-10-28 11:03:31 -04:00
Ingo Bauersachs
da2194444c Fix line endings in PseudoTCP code 2015-10-28 15:36:09 +01:00
Daniel Pocock
4b036f1264 Remove some hacks that call setUseCandidateReceived 2015-10-13 09:56:58 +02:00
Lyubomir Marinov
10b4e911ef Allows the demultiplexing of packets into pseudo sockets installed after receipt of the packets in question. Removes duplication. 2015-10-05 23:13:38 -05:00
Lyubomir Marinov
a7418247f6 Fixes javadocs, warnings. 2015-10-05 23:12:30 -05:00
damencho
26296f3cbe Updates the license headers and adds license file. 2015-10-01 15:28:55 -05:00
Boris Grozev
5c4ad56614 Revert "Does not retransmit StunClientTransaction-s over TCP." because
1. The particular implementation causes us to timeout client
transactions after 200ms.
2. We can't be certain that all legs of the connection use a reliable
transport (i.e. we may be connected via TCP to a TURN server, which
talks to the other side over UDP), so we should retransmit anyway.

This reverts commit 8a7f8c1eeaa22c475ec43d9468891afbead11413.
2015-09-30 16:55:30 -05:00
Lyubomir Marinov
6c14757ffe Fixes javadocs. 2015-08-11 16:29:59 -05:00
Roberto Andrade
9f03488376 Merge branch 'master' into bugfix/tcp-harvester-interface-reuse 2015-08-05 12:49:36 -04:00
Lyubomir Marinov
26200eab21 Fixes GitHub issue #19: NPE in MediaDescription#setAttribute() because CandidateAttribute#attribute is null. 2015-07-28 15:33:39 -05:00
Lyubomir Marinov
7072173ed3 Fixes GitHub issue #22: CandidateAttribute.clone() causes NullPointerException. 2015-07-28 11:56:35 -05:00
Lyubomir Marinov
75c2a52f9e Fixes GitHub issue #24: Wrong preference for choosing default candidate (not in accordance with rfc5245). 2015-07-28 11:35:07 -05:00
Lyubomir Marinov
469f045b9b Fixes GitHub issue #25: DATA_INDICATION encode error with STUN(TURN). 2015-07-28 09:16:33 -05:00
Lyubomir Marinov
4d08a7764f Moves the src and test directories to their respective Maven standard directory layout locations. 2015-07-28 08:48:27 -05:00
Roberto Andrade
b8ff856e29 - Adding logic for MuxServerSocketChannel to be aware of "anyLocalAddress" instances in cache and return matches when trying to build new ones to reuse the same underlying ServerSocketChannel
- Testing the new bit of functionality
2015-07-25 10:21:01 -04:00
Boris Grozev
0e715bd79a Allows the tie breaker value for an Agent to be set (patch my Matt
Fredrickson).
2015-07-24 18:18:53 -05:00
Boris Grozev
8443e7e914 Fixes compilaiton using jdk older than 1.8 (based on Matt Fredrickson's patch). 2015-07-20 11:14:17 -05:00
Boris Grozev
eb35310969 Compares tie breakers as unsigned longs to as RFC5245 mandates. Based on Matt Fredrickson's report and patch. Fixes #28. 2015-07-20 10:58:31 -05:00
Boris Grozev
1ba6076431 Fixes types. 2015-07-20 10:17:19 -05:00
boris
b67ebf259d Adds the PATCH method to HttpDemuxFilter (reported by peili on github: https://github.com/jitsi/jitsi-videobridge/issues/69#issuecomment-116845076). 2015-07-08 20:09:44 +00:00
lubomir.marinov
a4f7d4ff8d Fixes a stack overflow reported by James B. Byrne, investigated by Danny van Heumen. 2015-06-19 20:41:36 +00:00
boris
50e8ac2616 Exposes the useHostHarvester flag of an Agent. 2015-06-02 12:22:42 +00:00
boris
8d96b29382 Fixes the address filtering for single-port UDP. 2015-06-02 12:22:32 +00:00
boris
1f4aeebe38 Supports server reflexive candidates for single-port UDP, and
automatically detects mappings for EC2.
2015-06-02 12:22:23 +00:00
boris
471f91b364 Automatically adds a mapping for TCP when running on EC2. 2015-06-02 12:22:14 +00:00
boris
4f4b5005f9 Fix REQUEST_METHOD_MAX_LENGTH initialization. 2015-05-20 16:56:39 +00:00
lubomir.marinov
e9398b9353 Restores building and running with a non-8 JDK after r499. 2015-05-14 12:44:00 +00:00
lubomir.marinov
446607e5d7 Allows a listening endpoint to be shared among multiple protocols (e.g. ICE-TCP, HTTP). 2015-05-01 07:58:40 +00:00
lubomir.marinov
c7b8fd2e2b Fixes warnings. Adds javadocs. 2015-04-29 09:26:24 +00:00
boris
bd3f6c663f Exposes the "logPacketToPcap" method, because it is used in Jitsi. 2015-03-30 12:19:27 +00:00
boris
3355481bf8 Drop the first packet instead of the last. 2015-03-30 10:49:39 +00:00
boris
bb688bc896 Remove code (trying to) calculate and log RTP statistics. 2015-03-30 10:49:32 +00:00
boris
b0c8e73b36 Minor formatting changes, make methods package-private. 2015-03-30 10:49:23 +00:00
gp
03c5f7c162 Renames the "reachable" flag to "alive" and adds additional comments explaining its purpose and usage. 2015-03-19 11:15:26 +00:00
gp
b564f06732 Adds a "reachable" flag to the ConnectivityCheck*.java for debugging purposes. 2015-03-19 10:11:05 +00:00
boris
23d3b809cb Makes sure that threads in receive() get a SocketException when the
socket closes.
2015-03-13 13:39:01 +00:00
boris
cd826a1233 Treat the TERMINATED state the same as COMPLETED when handling binding
responses.
2015-03-13 13:38:38 +00:00
boris
89fd7625fe Synchronize access to the Agent's state. Harden state checks to avoid
bugs due to race conditions. Don't fire state change events unless the
state indeed changed. Improve logging.
2015-03-13 13:38:19 +00:00
boris
4cb51d0302 Respects the IPv6 configuration in SinglePortUdpHarvester. Fixes typos. 2015-03-09 18:24:51 +00:00