Commit 16a0299
authored
Fix: client reconnected every authenticationRefreshCheckSeconds when using tls authentication (#1062)
### Motivation
When using pulsar tls authentication with a broker that sets the authenticationRefreshCheckSeconds the connection was dropped for each authentication refresh check. After analyzing logs and tcpdumps I concluded that this error appears because the tls authentication is returning null, witch does not pass a validation in the broker.
After analyzing the tls auth implementation in Java (that works), I concluded that the GetData method should return empty byte array instead of nil.
### Modifications
Changed tls auth GetData to return empty byte array instead of nil.
---------
Co-authored-by: Jorge Pereira <[email protected]>1 parent a3fcc9a commit 16a0299
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
826 | 831 | | |
827 | 832 | | |
828 | 833 | | |
| |||
0 commit comments