tests/test_transport_tcp.c - updated for new Client init behavior
## Fixes
### Issue #194: TCP client only accepts IPv4 addresses, not hostnames
**Problem:** only parses dotted-decimal IPv4 addresses, so hostnames like fail.
**Fix:** Replaced with in both (transport_tcp.c) and (transport_tls.c). The new code:
- Resolves hostnames via DNS (supports both IPv4 and IPv6)
- Iterates over all resolved addresses, trying each until a connection succeeds
- Creates the socket with the correct address family
- Added getter for use by TLS code
Also changed struct from to to support both IPv4 and IPv6 addresses.
### Issue #193: --progress output missing in multithreaded mode
**Problem:** The progress callback () was only called in single-threaded mode (). In multithreaded mode (), progress was not reported.
**Fix:**
- Added , , and fields to
- Created a that runs as a separate thread during multithreaded sends
- The sender thread accumulates byte counts under the mutex after each chunk
- The progress thread prints periodic status every second (matching single-threaded behavior)
- Progress thread exits cleanly when is set
### Files changed
- `src/shared/transport_tcp.h` - sockaddr_storage, tcp_get_contimeout_sec
- `src/shared/transport_tcp.c` - getaddrinfo, deferred socket creation
- `src/shared/transport_tls.c` - getaddrinfo for TLS connections
- `src/shared/transport_ssh.c` - ss_family instead of sin_family
- `src/shared/multiprocessing.h` - progress fields
- `src/shared/multiprocessing.c` - init/destroy progress fields
- `src/client/client_send.c` - progress thread, sender progress tracking
- `tests/test_transport_tcp.c` - updated for new Client init behavior
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes
Issue #194: TCP client only accepts IPv4 addresses, not hostnames
Problem: only parses dotted-decimal IPv4 addresses, so hostnames like fail.
Fix: Replaced with in both (transport_tcp.c) and (transport_tls.c). The new code:
Also changed struct from to to support both IPv4 and IPv6 addresses.
Issue #193: --progress output missing in multithreaded mode
Problem: The progress callback () was only called in single-threaded mode (). In multithreaded mode (), progress was not reported.
Fix:
Files changed
src/shared/transport_tcp.h- sockaddr_storage, tcp_get_contimeout_secsrc/shared/transport_tcp.c- getaddrinfo, deferred socket creationsrc/shared/transport_tls.c- getaddrinfo for TLS connectionssrc/shared/transport_ssh.c- ss_family instead of sin_familysrc/shared/multiprocessing.h- progress fieldssrc/shared/multiprocessing.c- init/destroy progress fieldssrc/client/client_send.c- progress thread, sender progress trackingtests/test_transport_tcp.c- updated for new Client init behaviorPull request closed