minio/cmd
Harshavardhana c39d3db7a0 server/tls: allocate tls.Config{} properly. (#2537)
There is a golang bug which crashes the server, allocate tls.Config properly to avoid
this problem.

```
2016/08/22 20:21:03 http: panic serving 127.0.0.1:40744: runtime error: invalid memory address or nil pointer dereference
goroutine 38 [running]:
net/http.(*conn).serve.func1(0xc820526680)
    /home/harsha/.gimme/versions/go1.6.2.linux.amd64/src/net/http/server.go:1389 +0xc1
panic(0xbefa80, 0xc820010140)
    /home/harsha/.gimme/versions/go1.6.2.linux.amd64/src/runtime/panic.go:443 +0x4e9
crypto/tls.(*Conn).serverHandshake(0xc820368300, 0x0, 0x0)
    /home/harsha/.gimme/versions/go1.6.2.linux.amd64/src/crypto/tls/handshake_server.go:43 +0x4d6
crypto/tls.(*Conn).Handshake(0xc820368300, 0x0, 0x0)
    /home/harsha/.gimme/versions/go1.6.2.linux.amd64/src/crypto/tls/conn.go:1035 +0x169
net/http.(*conn).serve(0xc820526680)
    /home/harsha/.gimme/versions/go1.6.2.linux.amd64/src/net/http/server.go:1405 +0x382
created by net/http.(*Server).Serve
    /home/harsha/.gimme/versions/go1.6.2.linux.amd64/src/net/http/server.go:2137 +0x44e
```

Fixes #2536
2016-08-23 00:20:15 -07:00
..
access-key.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
api-datatypes.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
api-errors.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
api-headers.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
api-headers_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
api-resources.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
api-response-multipart.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
api-response.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
api-router.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
auth-handler.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
auth-handler_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
benchmark-utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
bucket-handlers-listobjects.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
bucket-handlers.go api/bucketPolicy: Use minio-go/pkg/set and fix bucket policy regression. (#2506) 2016-08-20 03:16:38 -07:00
bucket-notification-datatypes.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
bucket-notification-handlers.go Refactor Heal RPC and add Shutdown RPC (#2488) 2016-08-21 12:06:53 -07:00
bucket-notification-handlers_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
bucket-notification-utils.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
bucket-notification-utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
bucket-policy-handlers.go api/bucketPolicy: Use minio-go/pkg/set and fix bucket policy regression. (#2506) 2016-08-20 03:16:38 -07:00
bucket-policy-handlers_test.go api/bucketPolicy: Use minio-go/pkg/set and fix bucket policy regression. (#2506) 2016-08-20 03:16:38 -07:00
bucket-policy-migrate.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
bucket-policy-parser.go api/bucketPolicy: Use minio-go/pkg/set and fix bucket policy regression. (#2506) 2016-08-20 03:16:38 -07:00
bucket-policy-parser_test.go api/bucketPolicy: Use minio-go/pkg/set and fix bucket policy regression. (#2506) 2016-08-20 03:16:38 -07:00
bucket-policy.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
build-constants.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
certs.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
certs_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
checkport.go boot: checkPortAvailability() should fail only for EADDRINUSE error and ignore other errors. (#2527) 2016-08-22 10:20:01 -07:00
checkport_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
commands.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
config-migrate.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
config-old.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
config-v6.go config: Initialize notify for fresh configs. (#2531) 2016-08-22 16:04:04 -07:00
config.go Adding test coverage for server-mux.go by creating TestListenAndServeTLS(). (#2493) 2016-08-19 01:29:50 -07:00
control-heal-main.go Refactor Heal RPC and add Shutdown RPC (#2488) 2016-08-21 12:06:53 -07:00
control-main.go Refactor Heal RPC and add Shutdown RPC (#2488) 2016-08-21 12:06:53 -07:00
control-shutdown-main.go Refactor Heal RPC and add Shutdown RPC (#2488) 2016-08-21 12:06:53 -07:00
controller-handlers.go Refactor Heal RPC and add Shutdown RPC (#2488) 2016-08-21 12:06:53 -07:00
controller-router.go Refactor Heal RPC and add Shutdown RPC (#2488) 2016-08-21 12:06:53 -07:00
crossdomain-xml-handler.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
damerau-levenshtein.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
damerau-levenshtein_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
erasure-createfile.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
erasure-createfile_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
erasure-healfile.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
erasure-healfile_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
erasure-readfile.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
erasure-readfile_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
erasure-utils.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
erasure-utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
erasure_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
event-notifier.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
event-notifier_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
faulty-disk_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
format-config-v1.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
format-config-v1_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
fs-createfile.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
fs-v1-errors.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
fs-v1-metadata.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
fs-v1-metadata_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
fs-v1-multipart-common.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
fs-v1-multipart.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
fs-v1.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
fs-v1_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
generic-handlers.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
globals.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
handler-utils.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
handler-utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
host-to-ip.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
host-to-ip_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
httprange.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
httprange_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
leak-detect_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
logger-console-hook.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
logger-file-hook.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
logger-syslog-hook_nix.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
logger-syslog-hook_windows.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
logger.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
logger_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
main.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
main_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
namespace-lock.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
namespace-lock_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
notifiers.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
notifiers_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
notify-amqp.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
notify-elasticsearch.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
notify-redis.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-api-getobject_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-api-getobjectinfo_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-api-listobjects_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-api-multipart_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-api-putobject_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-common.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-datatypes.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-errors.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-handlers-common.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-handlers.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-handlers_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-interface.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-multipart-common.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-utils.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object-utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
object_api_suite_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-dirent-fileno.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-dirent-ino.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-list-dir-nix.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-list-dir-others.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-list-dir_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-prepare-path.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-utils_common.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-utils_nix.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-utils_nix_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-utils_windows.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix-utils_windows_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
posix_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
rate-limit-handler.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
routers.go Refactor Heal RPC and add Shutdown RPC (#2488) 2016-08-21 12:06:53 -07:00
rpc-client.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
rpc-server-datatypes.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
rpc-server.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
runtime-checks.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
server-main.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
server-mux.go server/tls: allocate tls.Config{} properly. (#2537) 2016-08-23 00:20:15 -07:00
server-mux_test.go Adding test coverage for server-mux.go by creating TestListenAndServeTLS(). (#2493) 2016-08-19 01:29:50 -07:00
server-rlimit-nix.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
server-rlimit-win.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
server-startup-msg.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
server_test.go api/bucketPolicy: Use minio-go/pkg/set and fix bucket policy regression. (#2506) 2016-08-20 03:16:38 -07:00
server_utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signals.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-jwt.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-jwt_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-v4-parser.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-v4-parser_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-v4-postpolicyform.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-v4-postpolicyform_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-v4-utils.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-v4-utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-v4.go signature: Use the client sent region if region is properly validated. (#2534) 2016-08-22 19:43:36 -07:00
signature-v4_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
signature-verify-reader.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
storage-datatypes.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
storage-errors.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
storage-interface.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
strconv-bytes.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
strconv-bytes_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
streaming-signature-v4.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
streaming-signature-v4_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
test-utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
tree-walk-pool.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
tree-walk-pool_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
tree-walk.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
tree-walk_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
trie.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
trie_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
typed-errors.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
update-main.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
update-notifier.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
utils.go Refactor Heal RPC and add Shutdown RPC (#2488) 2016-08-21 12:06:53 -07:00
utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
version-main.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
version_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
web-handlers.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
web-handlers_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
web-router.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-bucket.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-common.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-errors.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-healing.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-healing_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-list-objects-heal.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-list-objects.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-metadata.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-metadata_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-multipart-common.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-multipart.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-object.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-object_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-utils.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1-utils_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00
xl-v1_test.go server: Move all the top level files into cmd folder. (#2490) 2016-08-18 16:23:42 -07:00