Re: Getting DB error = 20017 - Unexpected EOF from the server
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <OF8195B1B4.696B663D-ON85257578.00665A26-85257578.00675B6E@fairchildsemi.com> |
>Looking at http://h71000.www7.hp.com/doc/82final/6529/6529pro_030.html >and searching for TDSESEOF (you can find it in net.c, tds_goodwrite >probably raised the error) it seems a constants problem. I think it >would be safer to replace "sock_errno == EAGAIN" in net.c (there are 4 >occurrencies) with "(sock_errno == EAGAIN || sock_errno == EWOULDBLOCK >|| sock_errno == EINPROGRESS)". The problem is that in some situations >tds_select can return even if data are not pending (or not possible to >write) and catching these errors keep looping. > >Regards, > Frediano Thanks Frediano. I've made your suggested changes and have rebuilt FreeTDS. I'll report back on the result. Thank you, Jeff Goodwin