When responding to "mempool" message, do not include the txid of an expiring soon transaction in the "inv" message reply. When responding to "getdata" message, do not reply with a "tx" message for a transaction which is expiring soon.