Github user andreaTP commented on the issue:

    https://github.com/apache/zeppelin/pull/2322
  
    @felixcheung good catch, after a second look I can see that while it is 
waiting on `pollEvent` it will also delay the `sendEvent` since it is 
`synchronized` too.
    
    I guess all these problems are already solved by Java standard lib, if I 
have positive feedback I will go substituting `eventQueue` with a 
[LinkedBlockingQueue](https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/LinkedBlockingQueue.html)
 and removing all `synchronized` statements since they become unuseful.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to