Skip to content

Commit

Permalink
Use defaults for amqp_login from rabbitmq-c
Browse files Browse the repository at this point in the history
  • Loading branch information
pinepain committed Apr 11, 2014
1 parent 1a7d325 commit 08adb0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions amqp_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ int php_amqp_connect(amqp_connection_object *connection, int persistent TSRMLS_D
x = amqp_login(
connection->connection_resource->connection_state,
connection->vhost,
CHANNEL_MAX,
FRAME_MAX,
AMQP_DEFAULT_MAX_CHANNELS,
AMQP_DEFAULT_FRAME_SIZE,
AMQP_HEARTBEAT,
AMQP_SASL_METHOD_PLAIN,
connection->login,
Expand Down
4 changes: 0 additions & 4 deletions php_amqp.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ extern zend_class_entry *amqp_exception_class_entry,
*amqp_exchange_exception_class_entry,
*amqp_queue_exception_class_entry;


#define FRAME_MAX 131072 /* max length (size) of frame */
#define CHANNEL_MAX 10 /* max number of channels allowed */
#define HEADER_FOOTER_SIZE 8 /* 7 bytes up front, then payload, then 1 byte footer */
#define AMQP_HEARTBEAT 0 /* heartbeat */

#define DEFAULT_PORT "5672" /* default AMQP port */
Expand Down

0 comments on commit 08adb0d

Please sign in to comment.