ymnk / jsch-agent-proxy

Other
70 stars 41 forks source link

AgentProxy is not thread safe #5

Closed hugoduncan closed 12 years ago

hugoduncan commented 12 years ago

All functions in AgentProxy share an instance Buffer object, making it unsafe to access the agent, even just for query functions such as getIdentities, from multiple threads.

ymnk commented 12 years ago

Thank you for your suggestion. I agree it should be thread safe, and the code has modified, https://github.com/ymnk/jsch-agent-proxy/commit/d69463280a562750ad573373b3db898f35a66f48