agent.destroy()
销毁代理当前正在使用的所有套接字。
【Destroy any sockets that are currently in use by the agent.】
通常不需要这样做。然而,如果使用启用了 keepAlive 的代理,那么在代理不再需要时最好明确关闭它。否则,套接字可能会在服务器终止它们之前保持打开状态相当长的时间。
【It is usually not necessary to do this. However, if using an
agent with keepAlive enabled, then it is best to explicitly shut down
the agent when it is no longer needed. Otherwise,
sockets might stay open for quite a long time before the server
terminates them.】