vomp calls should work again, and without the server blocking

on the mdp_client_socket.
This commit is contained in:
gardners 2012-05-22 10:42:29 +09:30
parent c3350bb493
commit 79ce37ec35
2 changed files with 6 additions and 5 deletions

View File

@ -1162,10 +1162,6 @@ int overlay_mdp_client_socket_path_len=-1;
int overlay_mdp_client_init()
{
if (mdp_named_socket!=-1) {
WHY("WARNING: server asked to open client socket!");
sleep(10);
}
if (mdp_client_socket==-1) {
/* Open socket to MDP server (thus connection is always local) */
if (0) WHY("Use of abstract name space socket for Linux not implemented");

7
vomp.c
View File

@ -272,7 +272,12 @@ int vomp_send_status(vomp_call_state *call,int flags,overlay_mdp_frame *arg)
call->recent_sample_rotor%=VOMP_MAX_RECENT_SAMPLES;
}
}
/* XXX Here we act as our own client. This used to be able to block.
We should really refactor overlay_mdp_poll() so that we can deliver
the frame directly.
Make sure that we don't want (just drop the message if there is
congestion) */
overlay_mdp_send(&mdp,0,0);
call->local.sequence++;