Sebastien,
that code checks whether squid received data from the server side
connection, and if it didn't, returns an error to the client. Removing that
code will not fix your problem with G2 realplayer (and will introduce
problems in squid). Are you sure the upstream site is working properly?
What do you mean by ignore ZERO_SIZE_OBJECT?
If squid has no data to send to the client, what would you like it to send?
Rob
----- Original Message -----
From: "Sébastien LETARD" <sletard@tf1.fr>
To: <squid-users@ircache.net>
Sent: Wednesday, August 02, 2000 8:39 PM
Subject: Is my proxy will still work properly if I comment lines
insrc/http.c in order to use RealPlayer
> Dear Squid users,
>
> I'd like to know what the following code is for in the httpReadReply(int
fd, void *data) function from src/http.c in 2.2-STABLE5
>
> /* } else iF (len == 0 && entry->mem_obj->inmem_hi == 0) {
> * debug(50, 5) ("httpReadReply: FD %d: read failure: %s.\n",
> * fd, xstrerror());
> * ErrorState *err;
> * err = errorCon(ERR_ZERO_SIZE_OBJECT, HTTP_SERVICE_UNAVAILABLE);
> * err->xerrno = errno;
> * fwdFail(httpState->fwd, err);
> * httpState->eof = 1;
> * comm_close(fd);
> */
>
> Is it only for RFC compliance ?
>
> I have already post a few questions on the list by the past about using G2
RealPlayer through Squid http proxy, with no real answer to my real problem.
The Squid proxy replies to the player with X-Squid-Error:
ERR_ZERO_SIZE_OBJECT messages
>
> I have commented out all these lines in the httpReadReply(int fd, void
*data) function and it works now !
>
> So, Is my squid proxy going to hang and core-dump ? When ? Often ?
>
> How can I tell Squid to ignore ZERO_SIZE_OBJECT ?
>
>
> Thanks
>
>
Received on Wed Aug 02 2000 - 05:21:04 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:41 MST