An electrical connector (1) for receiving a CPU (5) includes a rectangular planar receiving portion (10) having a top surface (14) for mating with the CPU. At least two posts (20) extend perpendicularly from corners of the planar receiving portion. At least two posts and the planar receiving portion together define a receiving space for receiving the CPU. The post includes a resilient portion (22) and a fixing portion (24). A gap (241) is defined between a resilient portion and a fixing portion, and the resilient portion forms a protrusion block (26) protruding into the receiving space.