From 8b4f703492d8f03eace22df7cc89dbc7b6b25215 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 29 Jul 2021 06:16:33 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - README.md - fqsocks/assets/visibility.core.js - fqsocks/networking.py Fixes: - Should read `separate` rather than `seperate`. - Should read `return` rather than `retun`. - Should read `related` rather than `releated`. --- README.md | 2 +- fqsocks/assets/visibility.core.js | 2 +- fqsocks/networking.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0671e3d..5934bbc 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Unique Features so, it is effective against GFW full text filtering. the page http://zh.wikipedia.org/zh/防火长城‎ is a typical example of full text filtering (the url does not trigger to RST) * for https, socket connect and full ssl handshake will be tried, if anything goes wrong (https certificate filtering for example), fallback to another proxy. -* built-in support goagent as proxy, without starting an seperate goagent process +* built-in support goagent as proxy, without starting an separate goagent process * resolve proxy info from TXT dns record Basic Usage diff --git a/fqsocks/assets/visibility.core.js b/fqsocks/assets/visibility.core.js index e1fd53c..3ceede3 100644 --- a/fqsocks/assets/visibility.core.js +++ b/fqsocks/assets/visibility.core.js @@ -205,7 +205,7 @@ }, // Return document’s property value with name with vendor prefix. - // If API is not support, it will retun `unsupported` value. + // If API is not support, it will return `unsupported` value. _prop: function (name, unsupported) { if ( !self.isSupported() ) { return unsupported; diff --git a/fqsocks/networking.py b/fqsocks/networking.py index b488e2e..7ea2fc5 100644 --- a/fqsocks/networking.py +++ b/fqsocks/networking.py @@ -27,7 +27,7 @@ def create_tcp_socket(server_ip, server_port, connect_timeout): sock = SPI['create_tcp_socket'](server_ip, server_port, connect_timeout) # set reuseaddr option to avoid 10048 socket error sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - # resize socket recv buffer 8K->32K to improve browser releated application performance + # resize socket recv buffer 8K->32K to improve browser related application performance sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 32*1024) # disable negal algorithm to send http request quickly. sock.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, True)