View Issue Details

IDProjectCategoryView StatusLast Update
0001811libmicrohttpdHTTPS (TLS)public2011-11-04 10:18
ReporterMatthias Wachs Assigned ToChristian Grothoff  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version0.9.15 
Target Version0.9.16Fixed in Version0.9.16 
Summary0001811: MHD_set_connection_option not working with HTTPS
DescriptionI set the timeout for the connection to 30 sec. but I get a timeout after 4 sec. (4 sec. == default value)
Steps To ReproduceRun test-transport-api-reliability-https and test-transport-api-reliability-http for more than 4 seconds.
Additional Informationmwachs@fulcrum:~/gnunet/gnunet-head/src/transport$ time ./test_transport_api_reliability_https
Sep 30 17:20:51-729915 test_transport_api_reliability_https-271443 DEBUG Asking peers to connect...
Sep 30 17:20:52-114730 test_transport_api_reliability_https-271443 DEBUG Exchanging HELLO of size 272 with peer (0000)!
Sep 30 17:20:52-115241 test_transport_api_reliability_https-271443 DEBUG Exchanging HELLO of size 368 with peer (AHE2)!
Sep 30 17:20:52-269226 test_transport_api_reliability_https-271443 DEBUG Exchanging HELLO of size 272 from peer IG67!
Sep 30 17:20:52-269425 test_transport_api_reliability_https-271443 DEBUG Exchanging HELLO of size 304 from peer IG67!
Sep 30 17:20:52-269587 test_transport_api_reliability_https-271443 DEBUG Exchanging HELLO of size 368 from peer IG67!
Sep 30 17:20:52-270846 transport-https-271460 ERROR SELECT Timeout changed from 0 to 4000
Sep 30 17:20:52-355166 transport-https-271461 ERROR SELECT Timeout changed from 0 to 4000

===> Sep 30 17:20:52-395781 transport-https-271461 ERROR Server: Setting timeout for 1446770 to 300 sec.

Sep 30 17:20:52-406422 transport-https-271460 ERROR Server: Setting timeout for 1FD1C20 to 300 sec.
Sep 30 17:20:52-435932 transport-https-271460 ERROR Server: Setting timeout for 2269040 to 300 sec.
Sep 30 17:20:52-435944 transport-https-271460 ERROR SELECT Timeout changed from 4000 to 301000
Sep 30 17:20:52-455750 transport-https-271461 ERROR Server: Setting timeout for 144D880 to 300 sec.
Sep 30 17:20:52-455770 transport-https-271461 ERROR SELECT Timeout changed from 4000 to 301000
Sep 30 17:20:52-730407 test_transport_api_reliability_https-271443 DEBUG Asking peers to connect...
Sep 30 17:20:52-730625 test_transport_api_reliability_https-271443 DEBUG Peers connected: IG67 <-> AHE2
Sep 30 17:20:52-730649 test_transport_api_reliability_https-271443 DEBUG Peer `AHE2' connected to us (0xca20f0)!
Sep 30 17:20:52-730694 test_transport_api_reliability_https-271443 DEBUG Peer `IG67' connected to us (0xca2230)!
Sep 30 17:20:53-731946 test_transport_api_reliability_https-271443 DEBUG Sending message 0 of size 8
Sep 30 17:20:53-732503 transport-https-271461 ERROR SELECT Timeout changed from 301000 to 300000
Sep 30 17:20:53-732575 test_transport_api_reliability_https-271443 DEBUG Got message 0 of size 8
Sep 30 17:20:54-005112 transport-https-271461 ERROR SELECT Timeout changed from 300000 to 299000
...Sep 30 17:20:55-005223 transport-https-271461 ERROR SELECT Timeout changed from 299000 to 298000
.Sep 30 17:20:55-875107 test_transport_api_reliability_https-271443 DEBUG Returning total message block of size 43423
Sep 30 17:20:55-875951 test_transport_api_reliability_https-271443 DEBUG Sending message 5000 of size 28424
Sep 30 17:20:55-876817 test_transport_api_reliability_https-271443 DEBUG Got message 5000 of size 28424

===> .Sep 30 17:20:56-005151 transport-https-271461 ERROR Server: 1446770 peer `AHE2' GET on address `127.0.0.1:43904' disconnected

Sep 30 17:20:56-005172 transport-https-271461 ERROR SELECT Timeout changed from 298000 to 0
Sep 30 17:20:56-005257 transport-https-271461 ERROR SELECT Timeout changed from 0 to 300000
Sep 30 17:20:56-005565 transport-https-271461 ERROR SELECT Timeout changed from 300000 to 301000
Sep 30 17:20:56-011428 transport-https-271461 ERROR SELECT Timeout changed from 301000 to 4000
Sep 30 17:20:56-155729 transport-https-271461 ERROR Server: Setting timeout for 1435780 to 300 sec.
Sep 30 17:20:56-156148 transport-https-271461 ERROR Server: Setting timeout for 14453D0 to 300 sec.
Sep 30 17:20:56-156160 transport-https-271461 ERROR SELECT Timeout changed from 4000 to 301000
Sep 30 17:20:56-157420 test_transport_api_reliability_https-271443 ERROR Expected message 5234 of size 52144, got 52115 bytes of message 5235
Sep 30 17:20:56-157451 test_transport_api_reliability_https-271443 DEBUG Fail! Stopping peers
Sep 30 17:20:56-157458 test_transport_api_reliability_https-271443 ERROR Peers got connected
Sep 30 17:20:56-157469 test_transport_api_reliability_https-271443 DEBUG Peer `AHE2' disconnected (0xca20f0)!
Sep 30 17:20:56-157947 transport-https-271460 ERROR Server: 1FD1C20 peer `IG67' GET on address `127.0.0.1:33369' disconnected
Sep 30 17:20:56-157964 transport-https-271460 ERROR SELECT Timeout changed from 301000 to 0
Sep 30 17:20:56-164055 test_transport_api_reliability_https-271443 DEBUG Peer `IG67' disconnected (0xca2230)!

real 0m4.463s
user 0m4.870s
sys 0m0.950s
TagsNo tags attached.

Activities

Matthias Wachs

2011-09-30 17:30

reporter   ~0004662

Last edited: 2011-09-30 17:31

mwachs@fulcrum:~/gnunet/gnunet-head/src/transport$ time ./test_transport_api_reliability_http
Sep 30 17:20:01-838858 test_transport_api_reliability_http-271411 DEBUG Asking peers to connect...
Sep 30 17:20:02-104278 test_transport_api_reliability_http-271411 DEBUG Exchanging HELLO of size 272 from peer 6695!
Sep 30 17:20:02-104388 test_transport_api_reliability_http-271411 DEBUG Exchanging HELLO of size 334 from peer 6695!
Sep 30 17:20:02-645992 test_transport_api_reliability_http-271411 DEBUG Exchanging HELLO of size 272 with peer (0000)!
Sep 30 17:20:02-646240 transport-http-271429 ERROR SELECT Timeout changed from 0 to 4000
Sep 30 17:20:02-646300 transport-http-271429 ERROR Server: Setting timeout for D09830 to 300 sec.
Sep 30 17:20:02-646361 transport-http-271429 ERROR Server: Setting timeout for D09C50 to 300 sec.
Sep 30 17:20:02-646407 transport-http-271429 ERROR Server: Setting timeout for D09F50 to 300 sec.
Sep 30 17:20:02-646470 transport-http-271429 ERROR Server: Setting timeout for D0A1E0 to 300 sec.
Sep 30 17:20:02-646480 transport-http-271429 ERROR SELECT Timeout changed from 4000 to 301000
Sep 30 17:20:02-646490 test_transport_api_reliability_http-271411 DEBUG Exchanging HELLO of size 334 with peer (N90R)!
Sep 30 17:20:02-660516 transport-http-271428 ERROR SELECT Timeout changed from 0 to 4000
Sep 30 17:20:02-660573 transport-http-271428 ERROR Server: Setting timeout for BD0000 to 300 sec.
Sep 30 17:20:02-660630 transport-http-271428 ERROR Server: Setting timeout for BD0220 to 300 sec.
Sep 30 17:20:02-660679 transport-http-271428 ERROR Server: Setting timeout for BD03D0 to 300 sec.
Sep 30 17:20:02-660739 transport-http-271428 ERROR Server: Setting timeout for BD0560 to 300 sec.
Sep 30 17:20:02-660749 transport-http-271428 ERROR SELECT Timeout changed from 4000 to 301000
Sep 30 17:20:02-838925 test_transport_api_reliability_http-271411 DEBUG Asking peers to connect...
Sep 30 17:20:02-839166 test_transport_api_reliability_http-271411 DEBUG Peer `N90R' connected to us (0x175c0f0)!
Sep 30 17:20:02-839201 test_transport_api_reliability_http-271411 DEBUG Peers connected: 6695 <-> N90R
Sep 30 17:20:02-839212 test_transport_api_reliability_http-271411 DEBUG Peer `6695' connected to us (0x175c230)!
Sep 30 17:20:03-840461 test_transport_api_reliability_http-271411 DEBUG Sending message 0 of size 8
Sep 30 17:20:03-840685 transport-http-271428 ERROR SELECT Timeout changed from 301000 to 300000
Sep 30 17:20:03-865526 test_transport_api_reliability_http-271411 DEBUG Got message 0 of size 8
Sep 30 17:20:04-005810 transport-http-271428 ERROR SELECT Timeout changed from 300000 to 299000
.Sep 30 17:20:05-005123 transport-http-271428 ERROR SELECT Timeout changed from 299000 to 298000
.Sep 30 17:20:06-005529 transport-http-271428 ERROR SELECT Timeout changed from 298000 to 297000
.Sep 30 17:20:07-005432 transport-http-271428 ERROR SELECT Timeout changed from 297000 to 296000
.Sep 30 17:20:08-005533 transport-http-271428 ERROR SELECT Timeout changed from 296000 to 295000
Sep 30 17:20:08-594944 test_transport_api_reliability_http-271411 DEBUG Returning total message block of size 43423
Sep 30 17:20:08-596503 test_transport_api_reliability_http-271411 DEBUG Sending message 5000 of size 28424
Sep 30 17:20:08-599665 test_transport_api_reliability_http-271411 DEBUG Got message 5000 of size 28424
.Sep 30 17:20:09-005693 transport-http-271428 ERROR SELECT Timeout changed from 295000 to 294000
.Sep 30 17:20:10-005193 transport-http-271428 ERROR SELECT Timeout changed from 294000 to 293000
.Sep 30 17:20:11-005498 transport-http-271428 ERROR SELECT Timeout changed from 293000 to 292000
.Sep 30 17:20:12-005860 transport-http-271428 ERROR SELECT Timeout changed from 292000 to 291000
.Sep 30 17:20:13-005114 transport-http-271428 ERROR SELECT Timeout changed from 291000 to 290000
Sep 30 17:20:13-331674 test_transport_api_reliability_http-271411 DEBUG Returning total message block of size 17335
Sep 30 17:20:13-333038 test_transport_api_reliability_http-271411 DEBUG Sending message 10000 of size 47336
Sep 30 17:20:13-335892 test_transport_api_reliability_http-271411 DEBUG Got message 10000 of size 47336
.Sep 30 17:20:14-005264 transport-http-271428 ERROR SELECT Timeout changed from 290000 to 289000
.Sep 30 17:20:15-006053 transport-http-271428 ERROR SELECT Timeout changed from 289000 to 288000
.Sep 30 17:20:16-005795 transport-http-271428 ERROR SELECT Timeout changed from 288000 to 287000
.Sep 30 17:20:17-005548 transport-http-271428 ERROR SELECT Timeout changed from 287000 to 286000
.Sep 30 17:20:18-005493 transport-http-271428 ERROR SELECT Timeout changed from 286000 to 285000
Sep 30 17:20:18-088872 test_transport_api_reliability_http-271411 DEBUG Returning total message block of size 57647
Sep 30 17:20:18-090404 test_transport_api_reliability_http-271411 DEBUG Sending message 15000 of size 12648
Sep 30 17:20:18-093412 test_transport_api_reliability_http-271411 DEBUG Got message 15000 of size 12648
.Sep 30 17:20:19-005083 transport-http-271428 ERROR SELECT Timeout changed from 285000 to 284000
.Sep 30 17:20:20-005077 transport-http-271428 ERROR SELECT Timeout changed from 284000 to 283000
.Sep 30 17:20:21-005452 transport-http-271428 ERROR SELECT Timeout changed from 283000 to 282000
.Sep 30 17:20:22-005196 transport-http-271428 ERROR SELECT Timeout changed from 282000 to 281000
.Sep 30 17:20:22-887087 test_transport_api_reliability_http-271411 DEBUG Returning total message block of size 34855
Sep 30 17:20:22-888482 test_transport_api_reliability_http-271411 DEBUG Sending message 20000 of size 34856
Sep 30 17:20:22-891405 test_transport_api_reliability_http-271411 DEBUG Got message 20000 of size 34856
Sep 30 17:20:23-005596 transport-http-271428 ERROR SELECT Timeout changed from 281000 to 280000
.Sep 30 17:20:24-006095 transport-http-271428 ERROR SELECT Timeout changed from 280000 to 279000
.Sep 30 17:20:25-005278 transport-http-271428 ERROR SELECT Timeout changed from 279000 to 278000
.Sep 30 17:20:26-005748 transport-http-271428 ERROR SELECT Timeout changed from 278000 to 277000
.Sep 30 17:20:27-005210 transport-http-271428 ERROR SELECT Timeout changed from 277000 to 276000
.Sep 30 17:20:27-662115 test_transport_api_reliability_http-271411 DEBUG Returning total message block of size 59455
Sep 30 17:20:27-663629 test_transport_api_reliability_http-271411 DEBUG Sending message 25000 of size 44456
Sep 30 17:20:27-665422 test_transport_api_reliability_http-271411 DEBUG Got message 25000 of size 44456
Sep 30 17:20:28-005872 transport-http-271428 ERROR SELECT Timeout changed from 276000 to 275000
.Sep 30 17:20:29-005178 transport-http-271428 ERROR SELECT Timeout changed from 275000 to 274000
.Sep 30 17:20:30-005682 transport-http-271428 ERROR SELECT Timeout changed from 274000 to 273000
.Sep 30 17:20:31-005157 transport-http-271428 ERROR SELECT Timeout changed from 273000 to 272000
.Sep 30 17:20:32-005874 transport-http-271428 ERROR SELECT Timeout changed from 272000 to 271000
.Sep 30 17:20:32-445862 test_transport_api_reliability_http-271411 DEBUG Returning total message block of size 59287
Sep 30 17:20:32-447371 test_transport_api_reliability_http-271411 DEBUG Sending message 30000 of size 57352
Sep 30 17:20:32-451099 test_transport_api_reliability_http-271411 DEBUG Got message 30000 of size 57352
Sep 30 17:20:32-646968 transport-http-271429 ERROR SELECT Timeout changed from 301000 to 271000
Sep 30 17:20:33-015310 transport-http-271428 ERROR SELECT Timeout changed from 271000 to 270000
Sep 30 17:20:43-105300 test_transport_api_reliability_http-271411 ERROR Peers got connected
Sep 30 17:20:43-105319 test_transport_api_reliability_http-271411 DEBUG Peer `N90R' disconnected (0x175c0f0)!
Sep 30 17:20:43-106035 transport-271428 ERROR Server: Failed to send data: Connection reset by peer

Sep 30 17:20:43-106058 transport-http-271428 ERROR Server: BD03D0 peer `6695' GET on address `127.0.0.1:58096' disconnected
Sep 30 17:20:43-106072 transport-http-271428 ERROR SELECT Timeout changed from 270000 to 2000
Sep 30 17:20:43-106151 transport-http-271428 ERROR SELECT Timeout changed from 2000 to 260000
Sep 30 17:20:43-107175 test_transport_api_reliability_http-271411 DEBUG Peer `6695' disconnected (0x175c230)!

real 0m41.293s
user 0m8.060s
sys 0m5.720s

Matthias Wachs

2011-09-30 17:40

reporter   ~0004663

FYI: I am sure that libcurl does not disconnect!

Christian Grothoff

2011-09-30 17:58

manager   ~0004664

Fixed in SVN 17143 (MHD_VERSION bumped to 0x00090F01).

Issue History

Date Modified Username Field Change
2011-09-30 17:28 Matthias Wachs New Issue
2011-09-30 17:28 Matthias Wachs Status new => assigned
2011-09-30 17:28 Matthias Wachs Assigned To => Christian Grothoff
2011-09-30 17:29 Matthias Wachs Additional Information Updated
2011-09-30 17:30 Matthias Wachs Additional Information Updated
2011-09-30 17:30 Matthias Wachs Note Added: 0004662
2011-09-30 17:31 Matthias Wachs Note Edited: 0004662
2011-09-30 17:40 Matthias Wachs Note Added: 0004663
2011-09-30 17:58 Christian Grothoff Note Added: 0004664
2011-09-30 17:58 Christian Grothoff Status assigned => resolved
2011-09-30 17:58 Christian Grothoff Fixed in Version => Git master
2011-09-30 17:58 Christian Grothoff Resolution open => fixed
2011-11-04 10:11 Christian Grothoff Product Version Git master => 0.9.15
2011-11-04 10:11 Christian Grothoff Fixed in Version Git master => 0.9.16
2011-11-04 10:11 Christian Grothoff Target Version => 0.9.16
2011-11-04 10:18 Christian Grothoff Status resolved => closed
2013-05-06 12:52 Christian Grothoff Category SSL => HTTPS (SSL)
2024-01-21 13:25 Christian Grothoff Category HTTPS (SSL) => HTTPS (TLS)