Commit graph

7 commits

Author SHA1 Message Date
Tarjei Husøy
0a7d73bc83 Run initiation under try/except
Ensures that connection is closed if errors occur here.
2016-06-02 08:56:04 -07:00
Tarjei Husøy
f1094961ba Handle packet fragmentation more robustly
Not the most effective, but it shouldn't fall over itself if faced
with fragmented packets.

Doesn't properly initiate plaintext connections yet, need some more
debugging to figure out what's up with that. Might be due to using
.read on a non-SSL socket.

Remaining items for robustness:
  - Make sure .send sends the entire message (or does SSL sockets
    handle that for us?)
  - Handle potential fragmentation when establishing server
    connection
2016-05-30 23:34:13 -07:00
Tarjei Husøy
878310d3e1 Close client connections if main thread is stopped 2016-05-30 21:18:54 -07:00
Tarjei Husøy
8a59115cad Document where the magic SSL request came from
Closes #1.
2016-05-30 20:35:12 -07:00
Tarjei Husøy
f5de37b0f5 Add warning about socket code 2016-05-30 08:36:46 -07:00
Tarjei Husøy
c63c5d2f3b Slightly better closing of sockets 2016-05-30 08:35:03 -07:00
Tarjei Husøy
a2a19616fc Add first draft of script 2016-05-30 07:31:26 -07:00