Skip to content

Commit

Permalink
fix #2738 (#2739)
Browse files Browse the repository at this point in the history
Co-authored-by: zhouyuan63 <zhouyuan11@jd.com>
  • Loading branch information
rr13k and zhouyuan63 committed Feb 11, 2022
1 parent 726a911 commit 3bac282
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/proxy/index.ts
Expand Up @@ -11,6 +11,7 @@ import {
import http, { ServerOptions } from 'http';
import https from 'https';
import * as urlUtils from '../utils/url';
import scriptProcessor from '../processing/resources/script';
import { readSync as read } from 'read-file-relative';
import { respond500, respondWithJSON, fetchBody, addPreventCachingHeaders } from '../utils/http';
import { run as runRequestPipeline } from '../request-pipeline';
Expand Down Expand Up @@ -214,6 +215,7 @@ export default class Proxy extends Router {

// API
close (): void {
scriptProcessor.jsCache.reset()
this.server1.close();
this.server2.close();
this._closeSockets();
Expand Down

0 comments on commit 3bac282

Please sign in to comment.