Skip to content

Commit d4685b6

Browse files
committed
fix unsending connection preface
1 parent bfad914 commit d4685b6

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# <img src="https://github.com/nxenon/h2spacex/assets/61124903/fd6387bf-15e8-4a5d-816b-cf5e079e07cc" width="10%" valign="middle" alt="Scapy" />&nbsp;&nbsp; H2SpaceX
22

3-
[![pypi: 0.1.13](https://img.shields.io/badge/pypi-0.1.13-8c34eb.svg)](https://pypi.org/project/h2spacex/)
3+
[![pypi: 0.1.14](https://img.shields.io/badge/pypi-0.1.14-8c34eb.svg)](https://pypi.org/project/h2spacex/)
44
[![Python: 3.10](https://img.shields.io/badge/Python->=3.10-blue.svg)](https://www.python.org)
55
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-006112.svg)](https://github.com/nxenon/h2spacex/blob/main/LICENSE)
66

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "h2spacex"
7-
version = "0.1.13"
7+
version = "0.1.14"
88
authors = [
99
{ name="nxenon", email="[email protected]" },
1010
]

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='h2spacex',
8-
version='0.1.13',
8+
version='0.1.14',
99
description='HTTP/2 Single Packet Attack low level library based on Scapy',
1010
package_dir={"": "src"},
1111
packages=find_packages(where="src"),

src/h2spacex/h2_connection.py

-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ def send_bytes(self, bytes_data: bytes):
104104
:param bytes_data: bytes data for sending into socket
105105
:return:
106106
"""
107-
if self.is_connection_closed:
108-
return
109107
using_socket = self.get_using_socket()
110108
try:
111109
using_socket.send(bytes_data)

0 commit comments

Comments
 (0)