make use of base-64 encoding runtime-configurable

This commit is contained in:
Eric House 2013-05-09 21:53:54 -07:00
parent 407a82322c
commit 9e67dda5a9
2 changed files with 8 additions and 2 deletions

View file

@ -62,8 +62,9 @@ DBMgr::Get()
DBMgr::DBMgr()
{
logf( XW_LOGINFO, "%s called", __func__ );
m_useB64 = false;
int tmp;
RelayConfigs::GetConfigs()->GetValueFor( "USE_B64", &tmp );
m_useB64 = tmp != 0;
pthread_key_create( &m_conn_key, destr_function );

View file

@ -63,3 +63,8 @@ LOGFILE_PATH=./xwrelay.log
# Delay sending packets so devices/emulators on the same machine as
# relay have a bit more natural experience
# SEND_DELAY_MILLIS=500
# Use base64 encoding rather than PQescapeByteaConn for stored
# messages. The latter doesn't seem as reliable with newer psql
# servers. Anything but 0 is treated as true.
USE_B64=1