Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
RemoteDriverProtocol needs multiple instances #505
This is not an issue when using the SimpleFetcherBolt as each instance has its own ProtocolFactory, however, with the FetcherBolt which has a shared ProtocolFactory for all the fetching threads, we have only one instance of RemoteDriverProtocol running at a time.
This is not a problem for the other protocol implementations as their underlying libs can handle multithreaded access but that won't work with RemoteWebDriver. One option would be to give fetching threads their own instance of ProtocolFactory but that would not be a good idea as this would mean one map and config instances per thread + have as many open connections as we have threads.
A better approach would be to either: