MCPcopy Create free account
hub / github.com/acl-dev/acl / send_request_hdr_error

Function send_request_hdr_error

app/jaws/module/mod_http/http_proxy.c:830–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828static int send_request_hdr_complete(ACL_ASTREAM *server, void *ctx);
829
830static 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

Callers

nothing calls this directly

Calls 5

http_request_reforwardFunction · 0.85
acl_aio_referFunction · 0.85
acl_aio_writenFunction · 0.85
acl_aio_unreferFunction · 0.85
http_proxy_completeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…