~ubuntu-branches/ubuntu/saucy/gnutls28/saucy

« back to all changes in this revision

Viewing changes to src/udp-serv.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-07-30 21:40:07 UTC
  • mfrom: (14.1.9 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130730214007-9mrd08xo61kla008
Tags: 3.2.3-1ubuntu1
* Sync with Debian (LP: #1068029). Remaining change:
  - Drop gnutls-bin and -doc since we want to use the versions
    in gnutls26 as the defaults instead

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
 
145
145
        for(;;)
146
146
          {
147
 
            do {
148
 
              ret = gnutls_record_recv_seq(session, buffer, MAX_BUFFER, sequence);
149
 
            } while(ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_INTERRUPTED);
 
147
            do 
 
148
              {
 
149
                ret = gnutls_record_recv_seq(session, buffer, MAX_BUFFER, sequence);
 
150
                if (ret == GNUTLS_E_HEARTBEAT_PING_RECEIVED)
 
151
                  gnutls_heartbeat_pong(session, 0);
 
152
              }
 
153
            while (ret == GNUTLS_E_INTERRUPTED || ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_HEARTBEAT_PING_RECEIVED);
150
154
 
151
155
            if (ret == GNUTLS_E_REHANDSHAKE)
152
156
              {