Closed adriansev closed 3 years ago
If you're able to reproduce the bug, then adding logging when you call recv() and when it returns can help figuring out the cause, especially if you dump the stack trace, because you'll see where the first recv() comes from, not just the second one.
logging.info("calling recv", exc_info=True)
result = await wb.recv()
logging.info("recv returned", exc_info=True)
@aaugustin thanks a lot! indeed, this way a found the reason for multiple recvs... thanks a lot!!!!
Hi! This is not really a bug report as the issue happened only recently and only in a specific context, so it's more of a pretty please help request for the expert(s) So, i encountered an strange error in the client usage in the context of the server doing something fishy (the server is a tomcat), so not usually but only for this specific dialogue .. so the error was:
where
__sendmsg
is this https://github.com/adriansev/jalien_py/blob/master/alienpy/alien.py#L472 so, the recv is tied to send, in a blocking function (there will be no parallel usage of __sendmsg) the blocking part is done by decorator syncify https://github.com/adriansev/jalien_py/blob/master/alienpy/alien.py#L430 that use the asyncio loop started here https://github.com/adriansev/jalien_py/blob/master/alienpy/alien.py#L374what i do not understand is why would be a second recv when i'm already waiting for an answer.. any idea? Thanks a lot!!