Skip to content

Commit

Permalink
Initial Clearwater code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mirw committed May 6, 2013
1 parent 3268f48 commit bbb0629
Show file tree
Hide file tree
Showing 5 changed files with 272 additions and 233 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.o
sipp
10 changes: 5 additions & 5 deletions call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1250,10 +1250,10 @@ char * call::send_scene(int index, int *send_status, int *len)

assert(call_socket);

if (call_socket->ss_congested) {
*send_status = -1;
return NULL;
}
// if (call_socket->ss_congested) {
// *send_status = -1;
// return NULL;
// }

assert(call_scenario->messages[index]->send_scheme);

Expand Down Expand Up @@ -1513,7 +1513,7 @@ bool call::executeMessage(message *curmsg) {
}

msg_snd = send_scene(msg_index, &send_status, &msgLen);
if(send_status == -1 && errno == EWOULDBLOCK) {
if(send_status == -1 && ((call_socket != NULL && call_socket->ss_congested) || errno == EWOULDBLOCK)) {
if (incr_cseq) --cseq;
/* Have we set the timeout yet? */
if (send_timeout) {
Expand Down
Loading

0 comments on commit bbb0629

Please sign in to comment.