GithubHelp home page GithubHelp logo

Comments (10)

ortuman avatar ortuman commented on August 25, 2024

Please, could you add more context? DonΒ΄t know exactly how to reproduce this.
Besides, looks like it could also be some bug on client side

from jackal.

lovetox avatar lovetox commented on August 25, 2024

Im not sure what i context i could provide
the server is able to put more data into the buffer as you can see on the first stanza
but after that he just puts not enough data into it anymore

im not sure how this is even possible it almost looks like some parser puts stuff into the buffer as he parses it, element after element

16.03.2019 20:39:33 (I) nbxmpp.client            | raising event from transport: :::::DATA RECEIVED::::
_____________
<?xml version="1.0"?><stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" id="95f52c14-8e87-4fd0-8104-639aaeac246e" from="wormhole.chat" version="1.0"><stream:features xmlns:stream="http://etherx.jabber.org/streams" version="1.0"><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mech
anism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>SCRAM-SHA-1-PLUS</mechanism><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-256-PLUS</mechanism><mechanism>SCRAM-SHA-512</mechanism><mechanism>SCRAM-SHA-512-PLUS</mechanism></mechanisms><register xmlns="http://
jabber.org/features/iq-register"/></stream:features>
_____________


16.03.2019 20:39:43 (I) nbxmpp.transports        | Plugging fd 1128, W:True, R:True
16.03.2019 20:39:43 (I) nbxmpp.transports        | pollout called, state == CONNECTED
16.03.2019 20:39:43 (I) nbxmpp.transports        | Plugging fd 1128, W:False, R:True
16.03.2019 20:39:43 (I) nbxmpp.client            | raising event from transport: :::::DATA SENT::::
_____________
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-256-PLUS">cD10bHMtdW5pcXVlLCxuPWxvdmV0b3gscj0zNmE1YWY0MzAxODFjZWFhMGU4NTdkOGViYTViZmFlYjAyYTczODc4ZjM5Mjk4MjI=</auth>
_____________

16.03.2019 20:39:43 (D) gajim.c.ged              | Raise event: stanza-sent
16.03.2019 20:39:43 (I) nbxmpp.transports        | pollin called, state == CONNECTED
16.03.2019 20:39:43 (I) nbxmpp.idlequeue         | read timeout removed for fd 1128
16.03.2019 20:39:43 (I) nbxmpp.client            | raising event from transport: :::::DATA RECEIVED::::
_____________
<
_____________

16.03.2019 20:39:43 (I) nbxmpp.transports        | pollin called, state == CONNECTED
16.03.2019 20:39:43 (I) nbxmpp.idlequeue         | read timeout removed for fd 1128
16.03.2019 20:39:43 (I) nbxmpp.client            | raising event from transport: :::::DATA RECEIVED::::
_____________
challenge
_____________

16.03.2019 20:39:43 (I) nbxmpp.transports        | pollin called, state == CONNECTED
16.03.2019 20:39:43 (I) nbxmpp.idlequeue         | read timeout removed for fd 1128
16.03.2019 20:39:43 (I) nbxmpp.client            | raising event from transport: :::::DATA RECEIVED::::
_____________

_____________

16.03.2019 20:39:43 (I) nbxmpp.transports        | pollin called, state == CONNECTED
16.03.2019 20:39:43 (I) nbxmpp.idlequeue         | read timeout removed for fd 1128
16.03.2019 20:39:43 (I) nbxmpp.client            | raising event from transport: :::::DATA RECEIVED::::
_____________
xmlns
_____________

16.03.2019 20:39:43 (I) nbxmpp.transports        | pollin called, state == CONNECTED
16.03.2019 20:39:43 (I) nbxmpp.idlequeue         | read timeout removed for fd 1128
16.03.2019 20:39:43 (I) nbxmpp.client            | raising event from transport: :::::DATA RECEIVED::::
_____________
="
_____________

16.03.2019 20:39:43 (I) nbxmpp.transports        | pollin called, state == CONNECTED
16.03.2019 20:39:43 (I) nbxmpp.idlequeue         | read timeout removed for fd 1128
16.03.2019 20:39:43 (I) nbxmpp.client            | raising event from transport: :::::DATA RECEIVED::::
_____________
urn:ietf:params:xml:ns:xmpp-sasl
_____________

from jackal.

ortuman avatar ortuman commented on August 25, 2024

what kind of transport are you using? socket? websocket?

from jackal.

lovetox avatar lovetox commented on August 25, 2024

no special transport, standard socket

from jackal.

ortuman avatar ortuman commented on August 25, 2024

πŸ€” I see.

I think I can figure out where the problem is. I'll tackle the issue and make know as soon as the patch is ready.

from jackal.

ortuman avatar ortuman commented on August 25, 2024

Just pushed a patch on master branch...

16b13b3

could you please check it now? πŸ™

from jackal.

lovetox avatar lovetox commented on August 25, 2024

hm yes can you offer an account on a patched server?

i am a client dev i just observed this problem, its not my server

from jackal.

ortuman avatar ortuman commented on August 25, 2024

Try registering an account on jackal.im

from jackal.

lovetox avatar lovetox commented on August 25, 2024

yes works fine on that server, though we never know now if that bug was on that server in the first place.

but i guess you wouldnt push changes if you didnt think you found something

thanks

from jackal.

ortuman avatar ortuman commented on August 25, 2024

You were right from the begining, data was being sent while perfoming serialization.
Current approach uses an intermediate buffer instead.

Thanks to you for reporting! πŸ™Œ πŸ˜ƒ

from jackal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.