diff options
Diffstat (limited to 'src/testspdy/test_notls.c')
-rw-r--r-- | src/testspdy/test_notls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testspdy/test_notls.c b/src/testspdy/test_notls.c index 566f0a74..69a6c8db 100644 --- a/src/testspdy/test_notls.c +++ b/src/testspdy/test_notls.c | |||
@@ -488,6 +488,7 @@ static int connect_to(const char *host, uint16_t port) | |||
488 | } | 488 | } |
489 | close(fd); | 489 | close(fd); |
490 | fd = -1; | 490 | fd = -1; |
491 | dief("connect", strerror(errno)); | ||
491 | } | 492 | } |
492 | freeaddrinfo(res); | 493 | freeaddrinfo(res); |
493 | return fd; | 494 | return fd; |
@@ -498,11 +499,11 @@ static void make_non_block(int fd) | |||
498 | int flags, rv; | 499 | int flags, rv; |
499 | while((flags = fcntl(fd, F_GETFL, 0)) == -1 && errno == EINTR); | 500 | while((flags = fcntl(fd, F_GETFL, 0)) == -1 && errno == EINTR); |
500 | if(flags == -1) { | 501 | if(flags == -1) { |
501 | dief("fcntl", strerror(errno)); | 502 | dief("fcntl1", strerror(errno)); |
502 | } | 503 | } |
503 | while((rv = fcntl(fd, F_SETFL, flags | O_NONBLOCK)) == -1 && errno == EINTR); | 504 | while((rv = fcntl(fd, F_SETFL, flags | O_NONBLOCK)) == -1 && errno == EINTR); |
504 | if(rv == -1) { | 505 | if(rv == -1) { |
505 | dief("fcntl", strerror(errno)); | 506 | dief("fcntl2", strerror(errno)); |
506 | } | 507 | } |
507 | } | 508 | } |
508 | 509 | ||
@@ -843,6 +844,7 @@ childproc(int port) | |||
843 | act.sa_handler = SIG_IGN; | 844 | act.sa_handler = SIG_IGN; |
844 | sigaction(SIGPIPE, &act, 0); | 845 | sigaction(SIGPIPE, &act, 0); |
845 | 846 | ||
847 | usleep(10000); | ||
846 | asprintf(&uristr, "https://127.0.0.1:%i/",port); | 848 | asprintf(&uristr, "https://127.0.0.1:%i/",port); |
847 | if(NULL == (rcvbuf = malloc(strlen(RESPONSE_BODY)+1))) | 849 | if(NULL == (rcvbuf = malloc(strlen(RESPONSE_BODY)+1))) |
848 | killparent(parent,"no memory"); | 850 | killparent(parent,"no memory"); |