Gre tunnel resume time

When, after a failure connectivity is back, gre/ipsec tunnel rise time depends on what ?
Between two sites I experience time from 40 seconds to 4 minutes, despite keepalive is at 10s default.