Creating a Sender/Receiver HTTP Server
TechAtBloomberg.com © 2024 Bloomberg Finance L.P. All rights reserved. • Create a basic HTTP server. • Allow a single-threaded server handling multiple clients. • Use the sender/receiver asynchronous std::execution (sender/receiver): http://wg21.link/p2300 • https://github.com/NVIDIA/stdexec.git • https://github.com/beman-project/execution26 • Sender/receiver networking: http://wg21.link/p2762 • Implementation: Implementation: https://github.com/beman-project/net29 • Async scope: http://wg21.link/p3149 Resources0 码力 | 8 页 | 2.19 MB | 5 月前3Tornado 6.5 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 6.3 HTTP servers and clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . implementions of HTTP (HTTPServer and AsyncHTTPClient). • An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can other protocols. The Tornado web framework and HTTP server together offer a full-stack alternative to WSGI. While it is possible to use the Tornado HTTP server as a container for other WSGI frameworks0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
Prerequisites: Tornado 6.3 requires Python 3.9 or newer. The following optional packages may be useful:pycurl [http://pycurl.io/] is used by the optional tornado.curl_httpclient. Libcurl version 7.22 or higher is required browser HTTP servers and clients tornado.httpserver — Non-blocking HTTP server tornado.httpclient — Asynchronous HTTP client tornado.httputil — Manipulate HTTP headers and URLs tornado.http1connection http1connection – HTTP/1.x client/server implementation Asynchronous networking tornado.ioloop — Main event loop tornado.iostream — Convenient wrappers for non-blocking socketstornado.netutil — Miscellaneous network0 码力 | 437 页 | 405.14 KB | 2 月前3Django CMS 2.1.x Documentation
django cms’s documentation! This document refers to version 2.1.5 Getting Started 1. Installation 1.1. Requirements 1.2. Databases 2. Introductory Tutorial 2.1. Configuration and setup 2.2. Creating templates Snippet 6.7. Teaser 6.8. Text 6.9. Video 6.10. Twitter 6.11. Inherit Advanced 1. Internationalization 1.1. Multilingual URL Middleware 1.2. Language Chooser 1.3. page_language_url 1.4. CMS_HIDE_UNTRANSLATED show_breadcrumb 3.11. page_language_url 3.12. language_chooser Extending the CMS 1. Extending the CMS: Examples 1.1. My First Plugin 1.2. My First App (apphook) 1.3. My First Menu 2. Custom Plugins 2.1. Writing a custom0 码力 | 81 页 | 554.09 KB | 6 月前3Django CMS 2.4.x Documentation
notes 2.2 release notes Upgrading from 2.1.x and Django 1.2.x Getting Started 1. Introductory Tutorial 1.1. Getting help 1.2. Configuration and setup 1.3. Creating templates 1.4. Creating your first CMS Page Common issues 6.1. Caught MultipleObjectsReturned while rendering Advanced 1. Internationalization 1.1. Multilingual URLs 1.2. Language Cookie 1.3. Language Chooser 1.4. page_language_url 1.5. hide_unstranslated Permissions 5.1. View restrictions 5.2. Page permissions Extending the CMS 1. Extending the CMS: Examples 1.1. My First Plugin 1.2. My First App (apphook) 1.3. My First Menu 2. Custom Plugins 2.1. Why would you0 码力 | 156 页 | 727.78 KB | 6 月前3TiDB中文技术文档
快速入门指南 TiSpark 用户指南 常见问题与解答(FAQ) 版本发布历史 2.0.4 2.0.3 2.0.2 2.0.1 2.0 2.0 RC5 2.0 RC4 2.0 RC3 2.0 RC1 1.1 Beta 1.1 Alpha 1.0 Pre-GA RC4 RC3 RC2 RC1 TiDB 路线图 性能测试 TiDB Sysbench 性能测试报告 - v1.0.0 TiDB TPC-H 50G 性能测试报告 为知识的传承献上您的一份力量! 如果当前文档生成时间太久,请到 书栈(BookStack.CN) 获取最新的文档,以跟上知识更新换代的步伐。 文档地址:http://www.bookstack.cn/books/pingcap-docs-cn 书栈官网:http://www.bookstack.cn 书栈开源:https://github.com/TruthHun 分享,让知识传承更久远! 感谢知识的创造 常见问题与解答(FAQ) 最佳实践 版本发布历史 2.0.4 2.0.3 2.0.2 2.0.1 2.0 2.0 RC5 2.0 RC4 2.0 RC3 2.0 RC1 1.1 Beta README - 9 - 本文档使用 书栈(BookStack.CN) 构建 1.1 Alpha 1.0 Pre-GA RC4 RC3 RC2 RC1 TiDB 路线图 用户案例 北京银行 海航 今日头条 转转 Mobike 饿了么(一)0 码力 | 444 页 | 4.89 MB | 5 月前3SOFAMOSN持续演进路径及实践分享
技术案例能力 0.1.0 0.2.0 0.3.0 0.4.0 Ø TCP代理/7层通用代理 Ø 简单匹配路由 Ø 集群管理 & 基本负载均衡(RR、 RANDOM) Ø SofaRpc及HTTP/1.1、 HTTP/2.0支持 Ø 进程平滑升级 Ø SOFAMesh集成,支持 xDS on ADS Ø X-Protocol协议扩展机制, 以及Dubbo支持 Ø 支持network/stream Retry、DirectResponse、 HTTP Header add/delete、 流控、故障注入等 Ø 支持必要的admin接口性能 0.1.0 0.2.0 0.3.0 0.4.0 Ø 内存复用框架 Ø Slab style buffer Ø Raw-Epoll模式 Ø 读合并 Ø 协程池化 Ø 调度均衡 Ø SOFARPC深度优化 Ø TLS官方库IO优化 Ø HTTP1.1/HTTP2.0 IO优化 断开链接 继续读取数据技术案例 – HTTP/2.0优化 官方HTTP/2.0实现问题: 1. syscall read较多,效率低下 2. 每个stream分配单独的goroutine处理, 调度开销高 3. 临时对象多,GC占比高 4. 基本实现了RFC中MUST部分,部分功 能需求上不匹配,如GRPC trailer实现技术案例 – HTTP/2.0优化 优化思路:适配MOSN框架,复用官方实现核心结构体和解析流程0 码力 | 29 页 | 7.03 MB | 5 月前3Rust 程序设计语言 简体中文版 1.85.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.1. 安装 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 一个你无法修复的无效状 态,那么 panic! 往往是合适的。 然而当错误预期会出现时,返回 Result 仍要比调用 panic! 更为合适。这样的例子包括解析器 接收到格式错误的数据,或者 HTTP 请求返回了一个表明触发了限流的状态。在这些例子中, 应该通过返回 Result 来表明失败预期是可能的,而调用者就必须决定该如何处理这个问题。 当你的代码在进行一个使用无效值进行调用时可能将用户置于风险中的操作时,代码应该首先 关键字来等待响应。接着我们调用其 text 方法来获取响应的文本,这里再一次使用 await 关键字等待。这两个步骤都是异步的。 对于 get 来说,我们需要等待服务器发送回其响应的第一部分,这会包含 HTTP 头 (headers)、cookies 等,这部分响应可以独立于响应体发送。特别是在响应体非常大的时候, 全部到达可能需要一些时间。因此我们不得不等待响应 整体 返回,所以 text 方法也是异步。0 码力 | 562 页 | 3.23 MB | 10 天前3Oracle VM VirtualBox 4.1.40 User Manual
VirtualBox R ⃝ User Manual Version 4.1.40 c⃝ 2004-2015 Oracle Corporation http://www.virtualbox.org Contents 1 First steps 10 1.1 Why is virtualization useful? . . . . . . . . . . . . . . . . . . . . . new in this release, there is a detailed list in chapter 15, Change log, page 202. 10 1 First steps 1.1 Why is virtualization useful? The techniques and features that VirtualBox provides are useful for several VirtualBox base package. Currently, Oracle provides the one extension pack, which can be found at http://www.virtualbox.org and provides the following added functional- ity: a) The virtual USB 2.0 (EHCI)0 码力 | 310 页 | 4.87 MB | 6 月前313 Istio 流量管理原理与协议扩展 赵化冰
的基础上增加了 VirtualInboundListener,VirtualOutboundListener、OutboundCluster、InboundCluster 等 概念。 为何按端口对 HTTP 的处理进行聚合,而不是为每一个服务创建一个 Listener? • 降低 Listener 数量和配置大小,减少资源占用 • 兼容 headless 和虚机服务,避免 Listener 配置频繁更新 15001 0.0.0.0_ 15006 9 Istio 流量管理 – 数据面 – 端到端请求处理流程 以 Bookinfo 为例说明服务间 HTTP 调用的流量拦截及处理流程: 1. Productpage 发起对 reviews 服务的调用:http://reviews:9080/reviews/0 。 2. 请求被 productpage Pod 的 iptables 出向流量规则拦截,处理后重定向到本地 listener 根据原目标 IP(通配)和端口(9080)转发到 0.0.0.0_9080 这个 outbound listener。 5. 根据 0.0.0.0_9080 listener 的 http_connection_manager filter 配置,该请求采用 9080 route 进行分发。 6. 9080 这个 route 的配置中,host name 为 reviews:90800 码力 | 20 页 | 11.31 MB | 5 月前3
共 161 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17