sexpect
sexpect copied to clipboard
Subcmd `send` cannot send >1022 chars on macOS
In #45:
On macOS,
write(pty_fd, buf, len)in non-blocking mode would always return1022iflen > 1022. Seems like the internal buffer is limited to 1024 bytes. Need to handle this with retry, also needs a timeout here or the server side would be blocking.
- The retry should happen in client side to keep server side logic as simple as possible.