You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When calling channel.open(), the sendRpc method attempts to assign this.resolveRPC after sending data. However, in some cases, the server may respond before this.resolveRPC is assigned, leading to a stuck (hanging) Promise.
channel.resolveRPC(channel) may never get called in a correct way and cause the channel open method hang forever
Issue:
The server may respond immediately after send(), before this.resolveRPC is assigned.
If this happens, the expected callback never gets executed, causing the Promise to hang indefinitely.
Suggested Fix
Instead of assigning this.resolveRPC after sending the frame, assign it before.
The text was updated successfully, but these errors were encountered:
Description
When calling channel.open(), the sendRpc method attempts to assign this.resolveRPC after sending data. However, in some cases, the server may respond before this.resolveRPC is assigned, leading to a stuck (hanging) Promise.
amqp-client.js/src/amqp-channel.ts
Lines 743 to 754 in d1177f5
amqp-client.js/src/amqp-base-client.ts
Lines 332 to 338 in d1177f5
channel.resolveRPC(channel)
may never get called in a correct way and cause the channel open method hang foreverIssue:
The server may respond immediately after send(), before this.resolveRPC is assigned.
If this happens, the expected callback never gets executed, causing the Promise to hang indefinitely.
Suggested Fix
Instead of assigning this.resolveRPC after sending the frame, assign it before.
The text was updated successfully, but these errors were encountered: