here is my only context without your gpt responses. try understand and fix.: any…
- User
here is my only context without your gpt responses. try understand and fix.:
any multistream connection in python “import” module?
the idea to initially allow program to be able to query multiple network connections with different timeouts and number of attempts in multistreamed independent fashion. kinda tor browser list of bridges sorter “SYN sent” ip addresses remover.
here is a nonperfect code in development:
look what can be improved in that specific case and removed/added/replaced.
yes, another problem with gui that it does not accepting mouse right-click to be able to select all and copy-paste inside textareas.
also, there is three types of brindges for tor browser as:
first type: 82.65.95.65:80 85433C41DB105EE35511058760F518CF4C78572F
second type: obfs4 38.175.194.87:443 EF55F1049814261D6F4A4D8684D26FE5E81B4DE3 cert=YDeyHDkwk/JnuimjOKgcLJptMeiCHtqCu59Z2L0ijJp8STB4V9CXy7oIvmKlh9ydl+89ZQ iat-mode=0
third type: webtunnel [2001:db8:b469:7b74:f9fd:51e9:e5df:e350]:443 DD44F54966789F24B96A65986993F62A1E3728FC url=https://tox02.ky0uraku.xyz/oRvjLEFZwsFook1LeWIh2KLqrBbe ver=0.0.1
as you can see the overall idea is to drop a bunch of list of different tor browser bridges types and check them for connectivity issue as “SYN sent”, which do not allows to establish a connection and simply determines the fact that this specific bridge IP is blocked and you are unable to do something but just remove it and sort-out from the overall list. also, Error Handling not need, because it only adds unnecessary complexity in code.
look what can be improved in that specific case and removed/added/replaced.
progress indication not need because in log output everyhing is visible in progress already.
the initial idea that: query first IP through specific adjustable connection timeout which is defaulted to 3sec and if “SYN sent” occurred, then simply remove that IP from the list and sort-out to sorted-bridges list.
it cold be initially be set to in 5 threads in subsequent IPs checking. so, basically you query/check first IP in linear sequence which is based on threads in for different IPs in the list.
so, if you have similar IPs in the initial list for checking, you need to just from the beginning sort this list inside textarea automatically and remove duplicate IPs bridges if there are any. then thread in query/queues can be adjusted normally for each IP in overall allowed number of threads.
just copy-pasted bunch of different bridges strings and pressed check and:
“”“
python ‘brijs4.py’ brijs4.py:12: FutureWarning: Possible nested set at position 123 pattern = re.compile( Exception in thread Thread-1 (process_ips_thread): Traceback (most recent call last): File “/usr/lib/python3.12/threading.py”, line 1073, in _bootstrap_inner self.run() File “/usr/lib/python3.12/threading.py”, line 1010, in run self._target(*self._args, **self._kwargs) File “brijs4.py”, line 53, in process_ips_thread ip, port = ip_port.split(‘:’) ^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1)
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.