- infd = stream_accept(data_socket, CONNECT_TIMEOUT, 0, STREAM_BUFSIZE);
- aclose(data_socket);
- if(infd == -1) {
- errstr = vstrallocf(_("error accepting stream: %s"), strerror(errno));
+ putresult(PORT, "%d 127.0.0.1:%d\n", header_port, data_port);
+
+ header_fd = stream_accept(header_socket, CONNECT_TIMEOUT, 0,
+ STREAM_BUFSIZE);
+ if (header_fd == -1) {
+ errstr = vstrallocf(_("error accepting header stream: %s"),
+ strerror(errno));
+ aclose(header_socket);
+ aclose(data_socket);