Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication hangs when using TCP. #106

Merged
merged 1 commit into from
Jun 17, 2020
Merged

Authentication hangs when using TCP. #106

merged 1 commit into from
Jun 17, 2020

Conversation

brett-smith
Copy link
Contributor

I am trying to use dbus-java as both a client and server on Windows. Windows does not support Unix sockets, so TCP must be used.

However, I found that authentication would always hang when using TCP. It was because :-

  1. The zero byte at the start of the TCP conversation was being read, but the state flag was no moved on to the next state, so this read kept repeating sinking the actual command.
  2. At the end of the authentication, BEGIN was not being sent.

@hypfvieh hypfvieh merged commit e4c6357 into hypfvieh:master Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants