Comments (7)
Bom dia.. THorse.MaxConnections := X;
Se não me engano o padrão é 32. Isso é apenas para alguns tipos de aplicações, por exemplo, console, VCL...
from horse.
Qual banco de dados vc está usando, Firebird? Me parece uma mensagem deste tipo de banco...
from horse.
Qual banco de dados vc está usando, Firebird? Me parece uma mensagem deste tipo de banco...
Estou usando tanto SQLServer quanto PG
from horse.
Pode ser que vc esta usando múltiplas instâncias de conexões, tive esse mesmo problema com bancos firebird, e resolvi fazendo uma lista de conexões e liberando-as após o uso em cada end-point. Ex. classe conexão:
-----
var
FDriver : TFDPhysFBDriverLink;
FConnList : TObjectList<TFDConnection>;
function TConnectionFiredac.Connected: Integer;
begin
if not Assigned(FConnList) then
FConnList := TObjectList<TFDConnection>.Create;
FConnList.Add(TFDConnection.Create(nil));
Result := Pred(FConnList.Count);
FConnList.Items[Result].Params.DriverID := 'FB';
FConnList.Items[Result].Params.Database := FCaminhoBD;
FConnList.Items[Result].Params.UserName := FUsuario;
FConnList.Items[Result].Params.Password := FSenha;
FConnList.Items[Result].Params.Add('CharacterSet=utf8');
FConnList.Items[Result].Connected;
end;
procedure TConnectionFiredac.Disconnected(Index: Integer);
begin
FConnList.Items[Index].Connected := False;
FConnList.Items[Index].Free;
end;
end.
from horse.
Acredito que no meu caso não seja esse problema, tentamos solucionar usando da seguinte maneira :
Horse.MaxConnections := High(Integer);**
Porém não obtivemos sucesso, teria uma maneira de pegar o numero de conexões ativas no horse @viniciussanchez ?
from horse.
@aesjunior2707 Essa mensagem é do limite de conexões REST;
Para resolver, vai utilizar o THorse.MaxConnections := 10000;
Lembrando que existe uma limitação para conexões com o Banco de Dados;
O postgres tem um limite default de 100 conexões;
É recomendado verificar no seu banco de dados esse limite e se possível aumentar esse valor;
from horse.
Obrigado @dliocode !
from horse.
Related Issues (20)
- Please add RemoteIP HOT 1
- Erro ao atualizar a versão HOT 1
- Link que lista os middleware no readme não existe mais.
- [Dúvida] - Horse callback HOT 1
- Horse.Provider.FPC.Daemon doesn't stop properly HOT 3
- Comportamento inadequado entre Group.Prefix e Route
- Erro de compilação com Lazarus 3.0, FPC 3.2.2, Ubuntu 23.10 e Horse Trunk HOT 2
- Erro de execução com Lazarus 3.0, FPC 3.2.2, Ubuntu 23.10 e Horse Trunk HOT 5
- Sugestão para viabilizar o uso de procedure anônima no método Listen (com FPC) HOT 5
- THorse unity tests - Mocks HOT 1
- Problema com o Res.SendFile, usando THorse.Get('*', function)
- EHorseException.ToJSONObject
- Headers THorseRequest HOT 1
- Requisição GET com Body HOT 1
- EHorseCallbackInterrupted retornando 404. HOT 2
- Problemas ao responder arquivos estáticos HOT 1
- Delphi 11 + Horse + ReactJs + Axios HOT 4
- [Lazarus] - Erro na criação de app Daemon.
- Ao realizar mais de 50 requisições ao mesmo tempo, esta gerando o erro: i/O error 103 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from horse.