From Han Yu's (
韩愈) Tang-dynasty essay
《送王秀才序》, where he warns scholars who stray from the orthodox path of learning that they end up in 'broken harbors and cut-off pools' - water that doesn't flow to the sea. The phrase has since meant any pursuit that leads nowhere.