Changeset 61cf9c


Ignore:
Timestamp:
2009-11-25 13:48:43 (4 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
master, 3.0, 4.0, experimental-ims
Children:
e4d6bb
Parents:
8993cc
git-author:
Poul-Henning Kamp <phk@…> (2009-11-25 13:48:43)
git-committer:
Poul-Henning Kamp <phk@…> (2009-11-25 13:48:43)
Message:

Log write errors instead of asserting them.

git-svn-id:  http://www.varnish-cache.org/svn/trunk/varnish-cache@4370 d4fa192b-c00b-0410-8231-f00ffab90ce4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishtest/vtc_http.c

    r10b402 r61cf9c  
    139139        vtc_dump(hp->vl, lvl, pfx, vsb_data(hp->vsb)); 
    140140        l = write(hp->fd, vsb_data(hp->vsb), vsb_len(hp->vsb)); 
    141         assert(l == vsb_len(hp->vsb)); 
     141        if (l != vsb_len(hp->vsb))  
     142                vtc_log(hp->vl, 0, "Write failed: %s", strerror(errno)); 
    142143} 
    143144 
Note: See TracChangeset for help on using the changeset viewer.