Skip to content
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

use firewall in query processing #136

Merged
merged 80 commits into from
Mar 27, 2018
Merged

use firewall in query processing #136

merged 80 commits into from
Mar 27, 2018

Conversation

Lagovas
Copy link
Collaborator

@Lagovas Lagovas commented Mar 27, 2018

No description provided.

data = append(data, ERR_PACKET)
data = append(data, byte(mysqlError.Code), byte(mysqlError.Code>>8))

if isProtocol41 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "Protocol41"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mysql has several protocol versions and structs depends on version (https://dev.mysql.com/doc/internals/en/packet-ERR_Packet.html). 41 mean 4.1+ version

except:
pass

PROCESS_CALL_TIMEOUT = 120

def get_go_version():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this function changes 1.7 to 1.7.0?

@vixentael vixentael merged commit 41ce469 into cossacklabs:master Mar 27, 2018
@Lagovas Lagovas deleted the lagovas/use-firewall branch April 3, 2018 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants