Fixed a bug that could drop messages when the publish queue is full, and scaled batch.size to 1000.