Java Application does not terminate when using kiteconnect API

manojmo
Hi,
Am using the kiteconnect jar version 3.5.0 from maven.
The java application does not terminate, probably due to the open okhttp threads.
I did not see any method to close the connection.
While logging out is not what i want, even calling logout() does not end the program.

There is another discussion for the same exact problem i am facing, but no solution has been posted in that thread.
https://kite.trade/forum/discussion/5688/java-application-is-not-terminating-while-i-use-kiteconnect-api
Tagged:
  • sujith
    That user was running on Java 11 and in Okhttp library there is something called keep connection alive which is by default set to true. Maybe that is what is resulting in this behavior. You may try forking the library and change whatever required or downgrade Java version and check the existing behavior.
Sign In or Register to comment.