Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to build http server #648

Merged
merged 3 commits into from
Mar 13, 2024
Merged

Add option to build http server #648

merged 3 commits into from
Mar 13, 2024

Conversation

feiniks
Copy link
Contributor

@feiniks feiniks commented Mar 6, 2024

No description provided.

@feiniks feiniks changed the title Add option to build libevhtp Add option to build http server Mar 6, 2024
@@ -2963,6 +2968,7 @@ remove_expire_cache_cb (evutil_socket_t sock, short type, void *data)
static void *
http_server_run (void *arg)
{
#ifdef HAVE_EVHTP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么不能把整个 http-server.c 禁用呢?

@@ -660,7 +660,7 @@ chunking_worker (gpointer vdata, gpointer user_data)
if (chunk->result < 0)
goto out;

idx = chunk->offset / seaf->http_server->fixed_block_size;
idx = chunk->offset / seaf->fixed_block_size;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http-server 里面原有的这些字段需要删掉吧。统一为无论是否编译 http server,都用这里的字段。

@killing killing merged commit 98315cc into master Mar 13, 2024
2 checks passed
@killing killing deleted the build_libevhtp branch March 13, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants