ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 64 forks source link

[TCP] TCP Client should support working with a proxy #1124

Open IMS94 opened 3 years ago

IMS94 commented 3 years ago

Description: Right now, the TCP client doesn't allow us to specify a proxy host (SOCKS proxy). This needs to be implemented.

Describe your problem(s) See description.

Describe your solution(s)

Suggested Labels (optional): SLAlpha3

IMS94 commented 3 years ago

We can use the netty Socks(4/5)ProxyHandler to achieve this. A prototype code is available at: https://github.com/IMS94/module-ballerina-tcp. Will try to finalize the implementation in a proper manner and send a PR.