Skip to content

Commit 7bf8763

Browse files
authored
Merge pull request #207 from justmobilize/only-one-ssl-error
Clearer error for only one SSL socket open at a time
2 parents deb2a5f + 30d73e0 commit 7bf8763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_esp32spi/adafruit_esp32spi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ def socket_open(self, socket_num, dest, port, conn_mode=TCP_MODE):
718718
if self._debug:
719719
print("*** Open socket to", dest, port, conn_mode)
720720
if conn_mode == ESP_SPIcontrol.TLS_MODE and self._tls_socket is not None:
721-
raise OSError(23) # ENFILE - File table overflow
721+
raise OSError(23, "Only one open SSL connection allowed")
722722
port_param = struct.pack(">H", port)
723723
if isinstance(dest, str): # use the 5 arg version
724724
dest = bytes(dest, "utf-8")

0 commit comments

Comments
 (0)