Talks to end the Korean War opened at Kaesong on July 10, 1951. In May 1951, the Chinese Communist Party leadership had set its course: 边谈边打,争取谈判解决问题, “talk while fighting, and work to settle the problem through negotiation.”
The armistice was signed at Panmunjom on July 27, 1953. A Party website notes that two years of the war passed in talking while fighting.