bgrozev
2baae57d53
ref: Use the HEADER_LENGTH constant. ( #252 )
2022-03-02 10:00:07 -06:00
bgrozev
f195378a3d
fix: Add a null check. ( #253 )
...
org.ice4j.stack.StunClientTransaction$Retransmitter.run: A client tran retransmission failed
java.lang.NullPointerException
at org.ice4j.stack.Connector.sendMessage(Connector.java:329)
at org.ice4j.stack.NetAccessManager.sendMessage(NetAccessManager.java:635)
2022-03-02 09:54:09 -06:00
bgrozev
a9ba80efb9
feat: Support harvesting with ephemeral ports. ( #250 )
2022-01-05 14:46:58 -06:00
Boris Grozev
86f1eaede2
fix: Fix gathering ipv6 addresses (broken in #214 ).
2022-01-05 12:40:22 -07:00
Jonathan Lennox
ddfc498d0b
Squash: handle null reason phrase.
2021-12-29 14:47:12 -07:00
Jonathan Lennox
d825218ab7
Log the reason phrase of a STUN error response.
2021-12-29 14:47:12 -07:00
Boris Grozev
fc1498ef7e
feat: Allow useDynamicPorts to be set per-Agent.
2021-12-29 14:46:58 -07:00
Jonathan Lennox
2e43ba1b3e
Log exceptions sending STUN requests when we can't find the socket. ( #246 )
2021-12-29 15:42:04 -05:00
Boris Grozev
64a7ca8c30
ref: Remove unused "transport" parameter.
2021-11-17 11:53:51 -07:00
Boris Grozev
f637413a98
ref: Clean up logger usage.
2021-11-17 11:53:51 -07:00
Ingo Bauersachs
15981cf5f3
Merge pull request #240 from jitsi/remove-private-jdk-api
...
Remove private jdk api
2021-11-09 21:57:49 +01:00
Ingo Bauersachs
0811007990
Improve test stability with wait/notify instead of sleeping
2021-11-09 21:18:02 +01:00
Ingo Bauersachs
cd2d21a8d0
Cleanup to make sure monotonic time is used, not wall-time
...
System.currentTimeMillis is not precise and may move backwards.
2021-11-09 21:02:27 +01:00
Ingo Bauersachs
626c35e460
Return unwrapped SocketOutputStream from PseudoTcpSocket
...
JDK17 introduced a wrapper around SocketOutputStream in
Socket.getOutputStream that doesn't forward flush. Directly return
our implementation in PseudoTcpSocket making sure that the original
intent of closing the socket when the stream is closed is still
followed.
2021-11-09 21:02:27 +01:00
Ingo Bauersachs
a1b3c9b503
Upgrade dependencies and build/test also on Java 17
2021-11-09 21:02:27 +01:00
Ingo Bauersachs
15d69b316c
Remove ServerSocketChannel muxing that used private JDK api
...
Closes #239
2021-11-08 21:05:54 +01:00
bgrozev
d4a145374f
Add a log message when using StunMappingCandidateHarvester. ( #238 )
...
* log: Add a log message when using StunMappingCandidateHarvester.
* ref: Use lambda, fix formating.
2021-09-29 10:34:35 -05:00
Jonathan Lennox
d7c0e27a1c
Synchronize access to candidateSockets.get(). ( #203 )
...
* Synchronize access to candidateSockets.get().
* Remove XXX comment about synchronization.
2021-09-17 15:48:45 -05:00
Дамян Минков
9dc08bd299
feat: Adds checkstyle module. ( #233 )
...
* feat: Adds checkstyle module.
2021-09-02 12:54:33 -05:00
Jonathan Lennox
adca67b17f
Fix a race stopping a connectivity check client. ( #237 )
...
* Fix a race stopping a connectivity check client.
(This could result in the agent, and everything it references, staying reachable and so being leaked.)
2021-08-24 16:40:35 -05:00
bgrozev
076281c76b
Support mapping a single port in MappingCandidateHarvester. ( #235 )
...
* test: Add unit test for MappingCandidateHarvester.
* ref: Move MappingCandidateHarvester to kotlin.
* feat: Add the option to match the configured port.
* feat: Support statically mapping a specific port.
* feat: Add a name to MappingCandidateHarvester.
* doc: Add more docs to reference.conf.
2021-08-16 13:26:35 -05:00
bgrozev
311a495b21
Update kotlin to 1.5.20. ( #232 )
...
* ref: Remove unused code (stats never queried).
* chore: Update jitsi-utils.
* chore: Update kotlin to 1.5.20.
* chore: Update jitsi-utils
* Update kotlin to 1.5.20.
* chore: Update jicoco.
* chore: Update jacoco to 0.8.7.
2021-07-14 14:58:07 -05:00
Nils Ohlmeier
10346acade
feat: Enable ephemeral port usage ( #231 )
...
* Port 0 allows to request ephemeral port
2021-07-13 15:24:12 -05:00
bgrozev
924f40c4e0
config: Fix static mapping property names (reported by @DoM1niC). ( #230 )
2021-06-08 12:06:56 +03:00
bgrozev
2586d8b2da
Port NAT harvester properties to new config ( #229 )
...
* feat: Port "nat harvester" to the new config.
* ref: Fix ktlint errors.
2021-05-26 18:01:12 +03:00
Ingo Bauersachs
3e0a9f97ef
Use ephemeral port for server socket ( #228 )
2021-05-03 23:21:29 +02:00
Ingo Bauersachs
f6550a80ac
Update Dokka to/and remove JCenter ( #227 )
2021-05-03 16:39:09 +02:00
George Politis
c829b3a766
feat: Adds a coverage profile and configures Codecov. ( #225 )
2021-04-12 16:17:55 +01:00
Ingo Bauersachs
f176d021f8
Replace static with random port in tests ( #224 )
2021-04-09 00:12:10 +02:00
Jonathan Lennox
5a299cd694
Shut down harvester thread pool when it's done. ( #223 )
...
* Shut down harvester thread pool when it's done.
* Use ExecutorService to create harvester threads; name thread pool threads to match other ice4j threads.
2021-04-08 15:51:51 -04:00
Ingo Bauersachs
34c2ce50ec
Migrate tests to JUnit 5 and release Maven Central ( #221 )
...
* Migrate test to JUnit 5 and prepare POM for Maven Central
* Use random ports for transaction tests
* Apply ktlint format
* Fix flaky tests
* Use jicoco from Maven Central
* Remove semver checks
* Add Kotlin linting check
* Use bnd-maven-plugin for OSGi to avoid confusing Kotlin
* Release to Maven Central
Closes #213
Closes #95
* Fix braces formatting that crept in with a regex
2021-01-04 21:34:02 +01:00
dependabot[bot]
a86c4be742
build(deps-dev): bump junit from 4.11 to 4.13.1 ( #217 )
...
Bumps [junit](https://github.com/junit-team/junit4 ) from 4.11 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases )
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.11.md )
- [Commits](https://github.com/junit-team/junit4/compare/r4.11...r4.13.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-13 13:54:10 -04:00
bgrozev
67ffceb81d
Port AWS harvester config. ( #216 )
2020-10-09 11:01:35 -05:00
bgrozev
3a55627ba0
ref: Port StunMappingHarvester config. ( #215 )
2020-09-25 11:39:13 -05:00
bgrozev
29ae8061ad
Port more config properties. ( #214 )
...
* ref: Port the "disable link-local addresses" property.
* ref: Port the receive buffer size property.
* ref: Port the "disable ipv6" property.
* ref: Port the "dynamic ports" propertty.
* ref: Port the timeout property.
* test: Add tests for the new properties.
2020-09-14 12:43:56 -05:00
bgrozev
f8a506ef70
Use metaconfig, port some properties. ( #212 )
...
* Use metaconfig, port some properties.
* ref: Use the typesource config to read system properties.
* fix: Fix a typo.
* Add tests for AgentConfig.
2020-08-24 11:36:22 -05:00
bgrozev
686164ffc4
ref: Rename variables. ( #209 )
2020-06-10 15:15:11 -05:00
bgrozev
ed63ae8e11
fix: Match the base when finding a local canidate for a remote address ( fixes #205 ). ( #208 )
...
* fix: Match the base when finding a local canidate for a remote address (fixes #205 ).
2020-06-10 14:18:33 -05:00
bgrozev
9a580a9401
Remove unused code, fix typo and formatting ( #207 )
...
* Remove unused method.
* Fix typos and formatting.
2020-06-09 16:25:10 -05:00
Jonathan Lennox
8ffa9030f4
Log the real source port of STUN mapping requests. ( #206 )
2020-06-05 17:57:18 -04:00
Jonathan Lennox
7016902b21
Shut down STUN stack before removing streams from Agent. ( #202 )
...
Should fix NPEs being thrown during Agent.free().
2020-04-21 09:59:33 -04:00
Jonathan Lennox
e6e36856c6
Fix format of msgType in exception message. ( #201 )
2020-04-17 16:11:28 -04:00
Jonathan Lennox
e90c796d6d
Merge duplicate ICE candidate pairs. ( #195 )
...
This can happen if a remote candidate is discovered as peer-reflexive and later received over signaling.
2020-04-08 12:48:48 -04:00
Jonathan Lennox
ca3868ac26
Avoid double-nomination of ICE candidate pairs. ( #198 )
...
Nomination is blocked once something is nominated rather than waiting until something is selected.
2020-04-07 18:25:16 -04:00
Jonathan Lennox
982e78212b
Some helpers for adding an ICE nomination strategy config option. ( #197 )
...
* Add fromString method to NominationStrategy.
* Add getters for NominationStrategy.
This allows Kotlin to model Agent's nominationStrategy as a property.
2020-04-07 16:52:57 -04:00
Jonathan Lennox
35e149848e
Remove local ufrag from log messages. ( #196 )
...
Not needed now that we have logger2, which has it in the log context.
2020-04-07 16:33:35 -04:00
bgrozev
36f732ba1c
Initializes the harvesters array to non-null. ( #193 )
2020-04-03 14:34:06 -05:00
Ingo Bauersachs
e0fccdaf4d
Merge pull request #191 from mstyura/remove-unused-dep
...
Updated java-sdp-nist-bridge and removed explict jain-sip-ri-ossonly dependency.
2020-03-28 02:37:43 +01:00
Yura Yaroshevich
b504c2cc2e
Updated java-sdp-nist-bridge to 1.2
2020-03-23 20:40:59 +03:00
Yura Yaroshevich
78e006cbac
Remove unused dependency
2020-03-23 15:24:26 +03:00