#1208·postgres

在预留连接的后端发生异常时,nextWrite() 会抛出一个未捕获的异常

作者: XavierGeerinck创建于 2026年9月1日更新于 2026年9月2日

closed() sets socket = null (connection.js#L448), and reconnect() only re-creates it on a later setTimeout (#L361) — so the connection sits with a null socket across ticks.

内容来源: porsager/postgres