Amazon s3 subir el tiempo de archivo

Tengo un archivo JPG con 800KB. Intento cargar en S3 y sigo recibiendo un error de tiempo de espera. ¿Puedes por favor averiguar lo que está mal? 800KB es bastante pequeño para subir.

Mensaje de error: su conexión de socket al servidor no se leyó ni se escribió dentro del período de tiempo de espera. Las conexiones inactivas se cerrarán.

Código de estado HTTP: 400

Código de error de AWS: RequestTimeout

Long contentLength = null;
System.out.println("Uploading a new object to S3 from a file\n");
try {
    byte[] contentBytes = IOUtils.toByteArray(is);
    contentLength = Long.valueOf(contentBytes.length);
} catch (IOException e) {
    System.err.printf("Failed while reading bytes from %s", e.getMessage());
}

ObjectMetadata metadata = new ObjectMetadata();
metadata.setContentLength(contentLength);        

s3.putObject(new PutObjectRequest(bucketName, key, is, metadata));