~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/net_serv.c

  • Committer: brian
  • Date: 2008-07-15 00:35:21 UTC
  • Revision ID: brian@localhost.localdomain-20080715003521-zcy669v8f9zjrvza
Fix for call (missed in the review the initial length setting).

Show diffs side-by-side

added added

removed removed

Lines of Context:
558
558
    waittime.tv_usec= 0;
559
559
 
560
560
    memset(&backtime, 0, sizeof(struct timeval));
 
561
    length= sizeof(struct timeval);
561
562
    error= getsockopt(net->vio->sd, SOL_SOCKET, SO_RCVTIMEO, 
562
563
                      &backtime, &length);
563
 
    assert(error == 0);
 
564
    if (error != 0)
 
565
    {
 
566
      perror("getsockopt");
 
567
      assert(error == 0);
 
568
    }
564
569
    error= setsockopt(net->vio->sd, SOL_SOCKET, SO_RCVTIMEO, 
565
570
                      &waittime, (socklen_t)sizeof(struct timeval));
566
571
    assert(error == 0);