Once the connection is accepted and later discontinued, the credits used for the connection will NOT be refunded for either party. This means that both you and your connected partner will not receive any credit refunds.
However, if you send an invitation to connect and do not receive a response, and then cancel the invitation, your credits may be refunded.