RS232 Bridge cable stopping after some time
I would probably have a direct connection between A and B, rather than depending on the PC to pass data between the two devices.

The two serial ports on the PC could then simply monitor the traffic - one port watching A->B, the other watching B->A.  This way you could be fairly certain that the PC is not causing the communications failure.