| 828 | static int send_request_hdr_complete(ACL_ASTREAM *server, void *ctx); |
| 829 | |
| 830 | static int send_request_hdr_error(ACL_ASTREAM *server acl_unused, void *ctx) |
| 831 | { |
| 832 | HTTP_CLIENT *http_client = (HTTP_CLIENT *) ctx; |
| 833 | |
| 834 | /* ȡ��������������״̬ */ |
| 835 | http_client->flag &= ~HTTP_FLAG_SERVER_LOCKED; |
| 836 | |
| 837 | /* ������Ǵ�������ͷʱ����������Խ������� */ |
| 838 | if (http_request_reforward(http_client) == 0) { |
| 839 | /* ����Ѿ���ʼ���Թ��̣���ֱ�ӷ��� */ |
| 840 | /* ���뷵�� -1, ��Ϊ��ϣ���������������Ĺرջص����� */ |
| 841 | return (-1); |
| 842 | } |
| 843 | |
| 844 | /* ��ֹ��ͻ���д���ݳ���ʱ��ǰ�رտͻ��� */ |
| 845 | acl_aio_refer(http_client->entry.client); |
| 846 | |
| 847 | /* ���ظ��ͻ��˶��������Ӧ������Ϣ */ |
| 848 | acl_aio_writen(http_client->entry.client, |
| 849 | HTTP_SEND_ERROR, (int) strlen(HTTP_SEND_ERROR)); |
| 850 | |
| 851 | /* �ָ��ͻ���Ϊ�ɹر�״̬ */ |
| 852 | acl_aio_unrefer(http_client->entry.client); |
| 853 | |
| 854 | /* �ûỰ��� */ |
| 855 | http_proxy_complete(http_client, -1); |
| 856 | /* ���뷵�� -1, ��Ϊ��ϣ���������������Ĺرջص����� */ |
| 857 | return (-1); |
| 858 | } |
| 859 | |
| 860 | /* ��������ͷ���������ɹ�ʱ�Ļص����� */ |
| 861 |
nothing calls this directly
no test coverage detected
searching dependent graphs…