juks / iso-8583-socket-queue

ISO 8583 gateway
MIT License
195 stars 111 forks source link

Auto-reverse bug. #17

Closed AlexKonstantinov closed 6 years ago

AlexKonstantinov commented 6 years ago

There is a case when SQ is hang up and can't take payments from terminals, that have sticked packages. The way to reproduce this bug is: 1) Send a purchase package, after that package is sent, sender should drop connection to make the IsoLogic to work. 2) First package generated by IsoLogic should retrieve faulty message code from IsoHost emulator, to relaunch it again. 3) The second package generated by IsoLogic should receive no response from IsoHost emulator, then SQ will try to delete that package from queue, but SQ won't be able to do that, so this package will stick in queue, and any other request made by this TerminalID won't proceed.

juks commented 6 years ago

Hello, Alex!

Thanks for digging deep. Need to find some time to reproduce the test case then fix. Will be back.

juks commented 6 years ago

Done