Skip to content

Exception thrown from thin mode connection finalizer #1748

Answered by sudarshan12s
gcowan-ot asked this question in Q&A
Discussion options

You must be logged in to vote

@gcowan-ot Thanks for analysis, I think the state this.connected = true; is incorrectly marked as true without completing ANO (Advanced Networking Options)

const buf = NAContext.sendPacket();

We need to adjust this state to correctly indicate Accept/ANO failures..

diff --git a/lib/thin/sqlnet/networkSession.js b/lib/thin/sqlnet/networkSession.js
index 57f5fe1de..87270f66b 100644
--- a/lib/thin/sqlnet/networkSession.js
+++ b/lib/thin/sqlnet/networkSession.js
@@ -298,7 +298,6 @@ class NetworkSession {
 
     /* Accepted  */
 
-    this.connected = true;
     this.cData = null;
     this.sndDatapkt = new Packet.DataPacket(this.sAtts.largeSDU);
     this.markerPkt = new Packet.MarkerPacket(th…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gcowan-ot
Comment options

Answer selected by gcowan-ot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants