~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

Moved connect_timeout, net_*_timeout, and retry_count to plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
uint32_t tc_heuristic_recover= 0;
268
268
uint64_t session_startup_options;
269
269
uint32_t back_log;
270
 
uint32_t connect_timeout;
271
270
uint32_t server_id;
272
271
uint64_t table_cache_size;
273
272
uint64_t table_def_size;
1699
1698
  OPT_DO_PSTACK,
1700
1699
  OPT_LOCAL_INFILE,
1701
1700
  OPT_BACK_LOG,
1702
 
  OPT_CONNECT_TIMEOUT,
1703
1701
  OPT_JOIN_BUFF_SIZE,
1704
1702
  OPT_KEY_BUFFER_SIZE, OPT_KEY_CACHE_BLOCK_SIZE,
1705
1703
  OPT_KEY_CACHE_DIVISION_LIMIT, OPT_KEY_CACHE_AGE_THRESHOLD,
1716
1714
  OPT_MYISAM_MAX_SORT_FILE_SIZE, OPT_MYISAM_SORT_BUFFER_SIZE,
1717
1715
  OPT_MYISAM_USE_MMAP, OPT_MYISAM_REPAIR_THREADS,
1718
1716
  OPT_MYISAM_STATS_METHOD,
1719
 
  OPT_NET_BUFFER_LENGTH, OPT_NET_RETRY_COUNT,
1720
 
  OPT_NET_READ_TIMEOUT, OPT_NET_WRITE_TIMEOUT,
 
1717
  OPT_NET_BUFFER_LENGTH,
1721
1718
  OPT_PRELOAD_BUFFER_SIZE,
1722
1719
  OPT_RECORD_BUFFER,
1723
1720
  OPT_RECORD_RND_BUFFER, OPT_DIV_PRECINCREMENT,
1751
1748
};
1752
1749
 
1753
1750
 
1754
 
#define LONG_TIMEOUT ((uint32_t) 3600L*24L*365L)
1755
 
 
1756
1751
struct my_option my_long_options[] =
1757
1752
{
1758
1753
  {"help", '?', N_("Display this help and exit."),
1920
1915
    (char**) &global_system_variables.bulk_insert_buff_size,
1921
1916
    (char**) &max_system_variables.bulk_insert_buff_size,
1922
1917
    0, GET_ULL, REQUIRED_ARG, 8192*1024, 0, ULONG_MAX, 0, 1, 0},
1923
 
  { "connect_timeout", OPT_CONNECT_TIMEOUT,
1924
 
    N_("The number of seconds the drizzled server is waiting for a connect "
1925
 
       "packet before responding with 'Bad handshake'."),
1926
 
    (char**) &connect_timeout, (char**) &connect_timeout,
1927
 
    0, GET_UINT32, REQUIRED_ARG, CONNECT_TIMEOUT, 2, LONG_TIMEOUT, 0, 1, 0 },
1928
1918
  { "div_precision_increment", OPT_DIV_PRECINCREMENT,
1929
1919
   N_("Precision of the result of '/' operator will be increased on that "
1930
1920
      "value."),
2038
2028
   (char**) &global_system_variables.net_buffer_length,
2039
2029
   (char**) &max_system_variables.net_buffer_length, 0, GET_UINT32,
2040
2030
   REQUIRED_ARG, 16384, 1024, 1024*1024L, 0, 1024, 0},
2041
 
  {"net_read_timeout", OPT_NET_READ_TIMEOUT,
2042
 
   N_("Number of seconds to wait for more data from a connection before "
2043
 
      "aborting the read."),
2044
 
   (char**) &global_system_variables.net_read_timeout,
2045
 
   (char**) &max_system_variables.net_read_timeout, 0, GET_UINT32,
2046
 
   REQUIRED_ARG, NET_READ_TIMEOUT, 1, LONG_TIMEOUT, 0, 1, 0},
2047
 
  {"net_retry_count", OPT_NET_RETRY_COUNT,
2048
 
   N_("If a read on a communication port is interrupted, retry this many "
2049
 
      "times before giving up."),
2050
 
   (char**) &global_system_variables.net_retry_count,
2051
 
   (char**) &max_system_variables.net_retry_count,0,
2052
 
   GET_UINT32, REQUIRED_ARG, MYSQLD_NET_RETRY_COUNT, 1, ULONG_MAX, 0, 1, 0},
2053
 
  {"net_write_timeout", OPT_NET_WRITE_TIMEOUT,
2054
 
   N_("Number of seconds to wait for a block to be written to a connection "
2055
 
      "before aborting the write."),
2056
 
   (char**) &global_system_variables.net_write_timeout,
2057
 
   (char**) &max_system_variables.net_write_timeout, 0, GET_UINT32,
2058
 
   REQUIRED_ARG, NET_WRITE_TIMEOUT, 1, LONG_TIMEOUT, 0, 1, 0},
2059
2031
  {"optimizer_prune_level", OPT_OPTIMIZER_PRUNE_LEVEL,
2060
2032
    N_("Controls the heuristic(s) applied during query optimization to prune "
2061
2033
       "less-promising partial plans from the optimizer search space. Meaning: "
2169
2141
   (char**) &global_system_variables.trans_prealloc_size,
2170
2142
   (char**) &max_system_variables.trans_prealloc_size, 0, GET_UINT,
2171
2143
   REQUIRED_ARG, TRANS_ALLOC_PREALLOC_SIZE, 1024, ULONG_MAX, 0, 1024, 0},
2172
 
  {"wait_timeout", OPT_WAIT_TIMEOUT,
2173
 
   N_("The number of seconds the server waits for activity on a connection "
2174
 
      "before closing it."),
2175
 
   (char**) &global_system_variables.net_wait_timeout,
2176
 
   (char**) &max_system_variables.net_wait_timeout, 0, GET_UINT,
2177
 
   REQUIRED_ARG, NET_WAIT_TIMEOUT, 1, LONG_TIMEOUT,
2178
 
   0, 1, 0},
2179
2144
  {0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
2180
2145
};
2181
2146