Author: mikej Date: Mon Nov 12 22:59:11 2007 New Revision: 6235 Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c Log: add bugfix portion of MDXMLINT-17 Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c ============================================================================== --- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c (original) +++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c Mon Nov 12 22:59:11 2007 @@ -58,7 +58,10 @@ struct config_data *config_data = data; int x; x = write(config_data->fd, ptr, realsize); - return realsize; + if ( x != (int)realsize) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write! %d out of %d\n", x, realsize); + } + return x; }