{"push_id":1027865472,"size":1,"distinct_size":1,"ref":"refs/heads/AMQP-591","head":"d10334898168de085fcba14acf79c547ee058c4d","before":"e6c98da9b015be07ad297e84e852dd437fd96647","commits":[{"sha":"d10334898168de085fcba14acf79c547ee058c4d","author":{"email":"ca38f0b1e403910690d62616d4d007b7e130680b@pivotal.io","name":"Gary Russell"},"message":"AMQP-591: Fix Channel Cache (with Permits)\n\nJIRA: https://jira.spring.io/browse/AMQP-591\n\nPermits are not released after a connection loss.\n\nCached channels held a reference to the old connection proxy; since this\nwas the key to the checkoutPermits map, the map entry was not found\nwhen closing, and hence the permits were not increased.\n\nThe solution is to change the channel proxy to be permanent, and just refresh\nits target connection; remove the hashCode method so cached channels can always\nfind their permits. Previously the hashcode included the hascode of the delegate.\n\nAlso, the permits map entry for a connection was set up after the\nlisteners were called, so the admin, for example didn't consult the permits\nat all.\n\nAdded an illegal state exception if the permits are not found when checking out as\nwell as error logging during return.\n\nAdd a test case.","distinct":true,"url":"https://api.github.com/repos/garyrussell/spring-amqp/commits/d10334898168de085fcba14acf79c547ee058c4d"}]}