gnetcli-adapter 2.1.0__tar.gz → 2.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gnetcli_adapter
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: Gnetcli-server adapter for Annet
5
5
  Author-email: Aleksandr Balezin <gescheit12@gmail.com>
6
6
  Requires-Python: >=3.10
@@ -162,7 +162,7 @@ def run_gnetcli_server(server_path: str, config: str = DEFAULT_GNETCLI_SERVER_CO
162
162
  try:
163
163
  proc = subprocess.Popen(
164
164
  [gnetcli_abs_path, "--conf-file", "-"],
165
- stdout=subprocess.PIPE,
165
+ stdout=subprocess.DEVNULL, # we do not read stdout
166
166
  stderr=subprocess.PIPE,
167
167
  stdin=subprocess.PIPE,
168
168
  bufsize=1,
@@ -188,6 +188,8 @@ def run_gnetcli_server(server_path: str, config: str = DEFAULT_GNETCLI_SERVER_CO
188
188
  else:
189
189
  if data.get("msg") == "init tcp socket":
190
190
  _local_gnetcli_url = data.get("address")
191
+ if data.get("msg") == "init unix socket":
192
+ _local_gnetcli_url = "unix:" + data.get("path")
191
193
  if data.get("level") == "panic":
192
194
  _logger.error("gnetcli error %s", data)
193
195
  _logger.debug("set gnetcli server exit code %s", proc.returncode)
File without changes