FR 7958 then FR 4597 at Barcelona
Cork → Barcelona → Porto
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
20:40FR 4597 to Porto leaves the gate
21 h 45 apart on the timetable, overnight
FR 4597 leaves 21 h 45 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.