Skip to content

Commit

Permalink
fix(core.gbapp): #336 timeout in API fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Mar 24, 2023
1 parent 56b6877 commit eb6800e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/basic.gblib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import { createRpcServer } from '@push-rpc/core';
import { createHttpKoaMiddleware } from '@push-rpc/http';
import { HttpServerOptions } from '@push-rpc/http/dist/server.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 { GBVMService } from './services/GBVMService.js';
import { GBLogEx } from '../core.gbapp/services/GBLogEx.js';
Expand All @@ -67,7 +67,7 @@ export function createKoaHttpServer(
app.use(cors({ origin: '*' }));
app.use(koaBody.koaBody({ multipart: true }));
app.use(middleware);
const server = app.listen(port);
const server = app.listen(port);
const SERVER_TIMEOUT = 60 * 1000;
server.timeout = SERVER_TIMEOUT;

Expand Down

0 comments on commit eb6800e

Please sign in to comment.