Skip to content

Conversation

@adrianosela
Copy link

@adrianosela adrianosela commented May 8, 2025

[ME-4546] Clean-Up Fork, Add Custom B0 Proxy Support

Includes fixes for https://mysocket.atlassian.net/browse/ME-4463

@adrianosela adrianosela force-pushed the ME-4546_fork-it-up branch from 0ede7d8 to 3d1dc37 Compare May 8, 2025 23:41
@@ -1,60 +0,0 @@
//go:build go1.10
Copy link
Author

Choose a reason for hiding this comment

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

im removing this because we dont care about supporting go 1.10

@atoonk atoonk requested a review from Copilot May 9, 2025 02:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR cleans up the fork while adding support for a custom B0 proxy along with new logging and token handling improvements. Key changes include updating type handling in read/write functions, adding new token types and helper structs (such as envChange and loginToken), and introducing debug logging controlled by the BORDER0_MSSQL_PROXY_DEBUG environment variable. The PR also removes an outdated example test file.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
types.go Sets ti.Size and allocates ti.Buffer; legacy writeLongLenType code now commented out.
token.go Adds new token definitions and returns token data (e.g. envChange, loginToken); debug logs marked with “FIXME: REMOVE” are introduced.
tds.go Introduces new session fields (id, border0DebugLogs), updates packet header handling, and adds debug prints based on the new debug flag.
mssql.go Adds a Spid() getter method.
lastinsertid_example_test.go Removed example test code file.
buf.go Adds new fields (wSpid, rSpid, serverConn) and modifies BeginRead behavior with new options.
session.go Adjusts prelogin fields (e.g. preloginTHREADID) and updates version hardcoding.

@adrianosela adrianosela merged commit c32409e into main May 9, 2025
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants