Changeset a2317e
- Timestamp:
- 02/25/10 00:46:13 (2 years ago)
- Branches:
- master
- Children:
- 957de1
- Parents:
- 0f1abf
- git-author:
- Tomash Brechko <tomash.brechko@…> (02/25/10 00:46:13)
- git-committer:
- Tomash Brechko <tomash.brechko@…> (02/25/10 00:46:13)
- Files:
-
- 4 edited
-
Changes (modified) (1 diff)
-
src/client.c (modified) (5 diffs)
-
src/socket_posix.h (modified) (2 diffs)
-
src/socket_win32.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Changes
r50ab04 ra2317e 6 6 7 7 Changes since 0.17: 8 9 Fix t/command.t failure on some Solaris distributions. 8 10 9 11 Make module thread-safe with Perl >= 5.7.2. -
src/client.c
r34bb6d ra2317e 1 1 /* 2 Copyright (C) 2007-20 09Tomash Brechko. All rights reserved.2 Copyright (C) 2007-2010 Tomash Brechko. All rights reserved. 3 3 4 4 When used to build Perl module: … … 42 42 43 43 44 #ifndef MAX_IOVEC45 #define MAX_IOVEC 102446 #endif47 48 49 44 /* REPLY_BUF_SIZE should be large enough to contain first reply line. */ 50 45 #define REPLY_BUF_SIZE 1536 … … 298 293 struct array index_list; 299 294 struct array str_buf; 295 int iov_max; 300 296 301 297 generation_type generation; … … 400 396 c->nowait = 0; 401 397 c->hash_namespace = 0; 398 399 c->iov_max = get_iov_max(); 402 400 403 401 c->generation = 1; /* Different from initial command state. */ … … 1193 1191 size_t len; 1194 1192 1195 count = (state->iov_count < MAX_IOVEC1196 ? state->iov_count : MAX_IOVEC);1193 count = (state->iov_count < state->client->iov_max 1194 ? state->iov_count : state->client->iov_max); 1197 1195 1198 1196 state->iov->iov_base = -
src/socket_posix.h
rb495a1 ra2317e 1 1 /* 2 Copyright (C) 2008 Tomash Brechko. All rights reserved.2 Copyright (C) 2008, 2010 Tomash Brechko. All rights reserved. 3 3 4 4 When used to build Perl module: … … 29 29 #include <sys/socket.h> 30 30 #include <sys/time.h> 31 #include <limits.h> 31 32 #include <errno.h> 33 34 35 #if defined(_SC_IOV_MAX) 36 37 #define get_iov_max() sysconf(_SC_IOV_MAX) 38 39 #elif defined(IOV_MAX) 40 41 #define get_iov_max() IOV_MAX 42 43 #else 44 45 #define get_iov_max() 16 46 47 #endif 48 32 49 33 50 #if defined(HAVE_POLL_H) -
src/socket_win32.h
r6bb9a6 ra2317e 1 1 /* 2 Copyright (C) 2008-20 09Tomash Brechko. All rights reserved.2 Copyright (C) 2008-2010 Tomash Brechko. All rights reserved. 3 3 4 4 When used to build Perl module: … … 28 28 #include <ws2tcpip.h> 29 29 #include <sys/types.h> 30 31 32 #define get_iov_max() 64 30 33 31 34
Note: See TracChangeset
for help on using the changeset viewer.
