fix(core.gbapp): #336 timeout in API fixed.
This commit is contained in:
parent
56b687792b
commit
eb6800edce
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ import { createRpcServer } from '@push-rpc/core';
|
||||||
import { createHttpKoaMiddleware } from '@push-rpc/http';
|
import { createHttpKoaMiddleware } from '@push-rpc/http';
|
||||||
import { HttpServerOptions } from '@push-rpc/http/dist/server.js';
|
import { HttpServerOptions } from '@push-rpc/http/dist/server.js';
|
||||||
import { GBServer } from '../../src/app.js';
|
import { GBServer } from '../../src/app.js';
|
||||||
import { SocketServer } from '@push-rpc/core';
|
import { } from '@push-rpc/core';
|
||||||
import * as koaBody from 'koa-body';
|
import * as koaBody from 'koa-body';
|
||||||
import { GBVMService } from './services/GBVMService.js';
|
import { GBVMService } from './services/GBVMService.js';
|
||||||
import { GBLogEx } from '../core.gbapp/services/GBLogEx.js';
|
import { GBLogEx } from '../core.gbapp/services/GBLogEx.js';
|
||||||
|
@ -67,7 +67,7 @@ export function createKoaHttpServer(
|
||||||
app.use(cors({ origin: '*' }));
|
app.use(cors({ origin: '*' }));
|
||||||
app.use(koaBody.koaBody({ multipart: true }));
|
app.use(koaBody.koaBody({ multipart: true }));
|
||||||
app.use(middleware);
|
app.use(middleware);
|
||||||
const server = app.listen(port);
|
const server = app.listen(port);
|
||||||
const SERVER_TIMEOUT = 60 * 1000;
|
const SERVER_TIMEOUT = 60 * 1000;
|
||||||
server.timeout = SERVER_TIMEOUT;
|
server.timeout = SERVER_TIMEOUT;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue