An optical receiver implemented with two electronic dispersion compensators (EDC) is disclosed. The optical receiver selects one of the EDC in an ordinary operation. Once there shaped signal compensated by the selected EDC is degraded due to irregular conditions of the optical transmission line, the optical transmitter and so on, the optical receiver reconfigures the tap coefficients of the unselected EDC and switches to the newly configured EDC after setting the tap coefficients for the new condition of the transmission line and the transmitter.