Permalink
Browse files

Merged pull request #320

  • Loading branch information...
2 parents a062544 + ac28d5f commit 9c22875c63fd5887804454256830f1548b43a49f @derickr derickr committed Jan 11, 2017
Showing with 3 additions and 1 deletion.
  1. +3 −1 xdebug_handler_dbgp.c
@@ -263,7 +263,9 @@ static void send_message(xdebug_con *context, xdebug_xml_node *message TSRMLS_DC
xdebug_str *tmp;
tmp = make_message(context, message TSRMLS_CC);
- SSENDL(context->socket, tmp->d, tmp->l);
+ if (SSENDL(context->socket, tmp->d, tmp->l) != tmp->l) {
+ fprintf(stderr, "There was a problem sending %ld bytes on socket %d", tmp->l, context->socket);
+ }
xdebug_str_ptr_dtor(tmp);
}

0 comments on commit 9c22875

Please sign in to comment.