Use executor for asynchronous packet writing and reading