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
After the client connects to oracle for a period of time, an error is reported during the operation: Not data packet #240
Comments
Line 68 in 6c4fdc7
At present, I directly change the code here to if len(packetData) < 0xA || PacketType(packetData[4]) != DATA { but I don't know if it will cause other problems. Trace Log:
|
I am getting the same error on go 1.19 go-ora 2.5.3, connecting to Oracle ATP. Would appreciate the solution very much! |
no problem if you change the condition form if len(packetData) <= 0xA to if len(packetData) < 0xA this will read an empty data packet and will repeat reading until server send some information |
oracle version:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
Golang : go 1.18 database/sql go-ora 2.5.3
use native *sql.DB.
comparative test of go-oci8+xorm, there is no situation that the connection cannot be used after being idle for a period of time
Trace Log:
trace log under normal conditions::
The text was updated successfully, but these errors were encountered: