Dorking is a town on the A24 road in Surrey , England. It is the setting of the 1871 novel, The Battle of Dorking .