Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travamento com requisições maiores que 1kb #8

Open
viniciusln opened this issue Jul 8, 2014 · 1 comment
Open

Travamento com requisições maiores que 1kb #8

viniciusln opened this issue Jul 8, 2014 · 1 comment

Comments

@viniciusln
Copy link
Contributor

Ao enviar requisições a um servidor com mais de 1kb o servidor trava, sem emitir mensagens de erro.
Não faz mais handshake com ninguém, como se não estivesse mais na rede.

Segue o final do log antes de parar de responder:

FINE -32.273 : Message Handled
FINEST -10.274 : Handling '
MSG:ab672d5d-1cf3-4873-b188-4f4bf7d21752:
{"service":"runState","channels":1,"driver":"uos.harmegido.server","parameters":{"state":"{"matchStateClass":"
org.vvgaming.harmegido.lib.model.match.PlayerChangeEnchant","stateJson":"{\"enchantImage\":{\"features\
":{\"bytes\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"cvType\
":0,\"height\":10,\"width\":10},\"imagem\":{\"bytes\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"cvType\":0,\"height\":10,\"width\":20}},\"jogador\":{\"
dispositivo\":\"71c6da57-d2e8-416c-8683-bb49e64e90e7\",\"playerName\":\"VINICIUS\",\"time\":\"
DARK\"}}"}","nomePartida":"partida1403166437"},"serviceType":"DISCRETE","type":"SERVICE_CALL_REQUEST"}
'

nuk added a commit that referenced this issue Jul 8, 2014
…use of Piped Streams to route internal requests. Adding a new parameter tries to overcome this limitation.
@nuk
Copy link
Member

nuk commented Jul 8, 2014

As it seem, PipedStreams have a default buffer size of 1024.
I've changed it to be parametrized using setMaxBufferSize or the ubiquitos.websocket.messageBufferSize property.
It's already in the dev branch.
Take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants