Russian Apache mailing list archive (apache-rus@lists.lexa.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: [apache-rus] mod_python
On Sun, 4 Apr 1999, Khimenko Victor wrote:
> Вот кусок из правок http_protocol.c:
>
> #ifdef RUSSIAN_APACHE
> unsigned char *newbuf,*p;
> int newlen=0;
> if (ra_charset_active(r))
> {
> ra_data_server2client(r,(char*)mm+offset,n,&newbuf,&newlen);
> p=newbuf;
> while(newlen > 0)
> {
> w = ap_bwrite(r->connection->client, p, newlen);
> if(w<=0) goto RECODE_DONE;
> newlen-=w;
> p+=w;
> }
> w=n;
> }
> else
> w = ap_bwrite(r->connection->client, (char *) mm + offset, n);
> RECODE_DONE:;
> #else
> w = ap_bwrite(r->connection->client, (char *) mm + offset, n);
> #endif
>
> Понятно, что все это -- взамен одной строки ...
Ух, крутота!
Спасибо, пойду править исправления.
Oleg.
----
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
Programmers don't die, they just GOSUB without RETURN.
Спонсоры сайта:
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE .
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin . Design (C) 1998 Max Smolev.