Commit 59a3227
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 <jorge.pereira@cross-join.com>
(cherry picked from commit 16a0299)1 parent a6b15dc commit 59a3227
1 file changed
Lines changed: 5 additions & 0 deletions
| 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