olegz/spring-integration — comment on commit f04740f6799dce5b8d78d7234bd00e7dfb94d224
File: spring-integration-file/src/main/java/org/springframework/integration/file/remote/session/CachingSessionFactory.java line 63
By markfisher:

This doesn't account for the "current state" when changing as I referred to in the suggestion. In other words, we need to make sure that if this changes at runtime, the current permits acquired state is replicated on this new UpperBound instance (and that is the reason it needs to be synchronized)