-
Notifications
You must be signed in to change notification settings - Fork 6
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev->staging #91
dev->staging #91
Conversation
@@ -20,9 +20,10 @@ const ( | |||
// Start starts our proxy pool operations. Trying to start a running ProxyEngine will return an error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -60,15 +60,6 @@ func (p5 *ProxyEngine) recycling() int { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -38,15 +38,18 @@ func (s SocksLogger) Printf(format string, a ...interface{}) { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GPT summary of 0f94d4 - 390560:
- Changed the signature of the
Print
method inbasicPrinter
to take in a variadicany
argument - Added a check to
Print
to return if the argument is an empty list - Updated the
Print
method to format the argument into a string - Updated
EnableDebug
to print a message when enabled - Updated
dbgPrint
to usePrintf
instead ofPrint
- Updated
msgBadProxRate
to include a check for the last announced bad proxy and to store the last announced bad proxy
@@ -68,7 +68,7 @@ type ProxyEngine struct { | |||
stats *Statistics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -117,13 +117,11 @@ func (p5 *ProxyEngine) stillGood(sock *Proxy) bool { | |||
if err := p5.proxyMap.delete(sock.Endpoint); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -10,7 +10,7 @@ var dummyPool *ants.Pool | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -50,11 +50,14 @@ func (p5 *ProxyEngine) LoadProxyTXT(seedFile string) (count int) { | |||
func (p5 *ProxyEngine) LoadSingleProxy(sock string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,8 +1,6 @@ | |||
package logger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -39,7 +39,24 @@ func (p5 *ProxyEngine) addTimeout(socksString string) string { | |||
return socksString |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GPT summary of 497766 - 262e6b:
- Added a
isEmpty()
function to check if the proxy engine is empty - Added an
ErrNoProxies
error - Added a
scale()
function to scale the proxy engine - Modified the
popSockAndLockIt
function to include the newisEmpty()
function - Added an
announceDial
function to print out a message when dialing - Modified the
mysteryDialer
function to include the newisEmpty()
andannounceDial
functions
@@ -19,7 +19,7 @@ const ( | |||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
479a5f2
to
0c61142
Compare
@@ -0,0 +1,204 @@ | |||
package prox5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -14,7 +14,7 @@ var defaultUseProxyRatelimiter = rl.Policy{ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -11,41 +11,47 @@ func (p5 *ProxyEngine) AddUserAgents(uagents []string) { | |||
p5.mu.Lock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GPT summary of 3f6449 - 2fa261:
- Added logging to AddUserAgents, SetUserAgents, SetCheckEndpoints, SetStaleTime, SetValidationTimeout, SetServerTimeout, SetMaxWorkers, EnableRecycling, DisableRecycling, SetRemoveAfter, SetDialerBailout, SetDispenseMiddleware, SetLogger, SetAndEnableDebugLogger, EnableAutoScaler, DisableAutoScaler, SetAutoScalerMaxScale, SetAutoScalerThreshold, EnableDebugRedaction, DisableDebugRedaction, EnableRecyclerShuffling, DisableRecyclerShuffling, EnableHTTPClientTLSVerification, and DisableHTTPClientTLSVerification functions.
- Added a minimum of 2 workers to SetMaxWorkers if the engine is empty.
@@ -154,13 +154,29 @@ func (hmd *handMeDown) Dial(network, addr string) (c net.Conn, err error) { | |||
return hmd.conn, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GPT summary of 7730f7 - ef156a:
- Added a new function
announceValidating()
which prints out the protocol and endpoint being validated - Modified
singleProxyCheck()
to callannounceValidating()
and removed the call todbgPrint()
- Modified
validate()
to check for nil pointers before running the validation
GPT summary of d8f03bc:
|
GPT summary of 69187d7:
|
GPT summary of 54e641f:
|
GPT summary of 121543b:
|
GPT summary of 5032231:
|
GPT summary of 2e85c81: Error: couldn't generate summary |
1 similar comment
GPT summary of 2e85c81: Error: couldn't generate summary |
GPT summary of 8497792: Not generating summary for merge commits |
1 similar comment
GPT summary of 8497792: Not generating summary for merge commits |
GPT summary of 39bc5ac:
|
GPT summary of bbbc9b7:
|
GPT summary of 39bc5ac:
|
GPT summary of bbbc9b7:
|
GPT summary of 05b9e36:
|
GPT summary of 05b9e36:
|
GPT summary of 40ed287:
|
GPT summary of 4f3c842:
|
GPT summary of 40ed287:
|
GPT summary of d8c0a3a:
|
GPT summary of 4f3c842:
|
GPT summary of 0c61142:
|
GPT summary of d8c0a3a:
|
GPT summary of db3eaf3:
PR summary so far:
|
GPT summary of 0c61142:
PR summary so far:
|
GPT summary of a1c31c9: Not generating summary for merge commits PR summary so far:
|
No description provided.