Skip to content

Commit f2e3f98

Browse files
committed
fix: destroy dev server proxy stream
1 parent 527f2d3 commit f2e3f98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/webpack/dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default class DevServer {
155155
server.on( "connection", async localSocket => {
156156
const remoteSocket = await this.#proxyConnect();
157157

158-
if ( !remoteSocket ) return localSocket.end();
158+
if ( !remoteSocket ) return localSocket.destroy();
159159

160160
stream.pipeline( localSocket, remoteSocket, () => {} );
161161
stream.pipeline( remoteSocket, localSocket, () => {} );

0 commit comments

Comments
 (0)